当前位置: 首页>>代码示例>>C#>>正文


C# Autodesk.MoveNext方法代码示例

本文整理汇总了C#中Autodesk.MoveNext方法的典型用法代码示例。如果您正苦于以下问题:C# Autodesk.MoveNext方法的具体用法?C# Autodesk.MoveNext怎么用?C# Autodesk.MoveNext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Autodesk的用法示例。


在下文中一共展示了Autodesk.MoveNext方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendTypeParameters

 public void SendTypeParameters(Autodesk.Revit.DB.FilteredElementIterator iter)
 {
     iter.Reset();
       while (iter.MoveNext())
       {
       sendParameters(iter.Current as Autodesk.Revit.DB.Element);
       }
 }
开发者ID:dwickeroth,项目名称:covise,代码行数:8,代码来源:COVER.cs

示例2: SendGeometry

 public void SendGeometry(Autodesk.Revit.DB.FilteredElementIterator iter, Autodesk.Revit.UI.UIApplication application)
 {
     UIDocument uidoc = application.ActiveUIDocument;
      Application app = application.Application;
      Document doc = uidoc.Document;
      MessageBuffer mb = new MessageBuffer();
      mb.add(1);
      sendMessage(mb.buf, MessageTypes.ClearAll);
      View3D = null;
      if (uidoc.ActiveView is View3D)
      {
      View3D = uidoc.ActiveView as View3D;
      }
      if (View3D == null)
      {
      iter.Reset();
      while (iter.MoveNext())
      {
          if (iter.Current is Autodesk.Revit.DB.View3D)
          {
              View3D = iter.Current as Autodesk.Revit.DB.View3D;
              break;
          }
          // this one handles Group.
      }
      }
       ElementId activeOptId = Autodesk.Revit.DB.DesignOption.GetActiveDesignOptionId(doc);
      iter.Reset();
      while (iter.MoveNext())
      {
      Autodesk.Revit.DB.Element el = iter.Current as Autodesk.Revit.DB.Element;
      if (el.DesignOption == null || el.DesignOption.Id == activeOptId)
      {
          SendElement(el);
      }
     // this one handles Group.
      }
 }
开发者ID:dwickeroth,项目名称:covise,代码行数:38,代码来源:COVER.cs

示例3: SendGeometry

 public void SendGeometry(Autodesk.Revit.DB.FilteredElementIterator iter, Autodesk.Revit.DB.Document doc)
 {
     MessageBuffer mb = new MessageBuffer();
      mb.add(1);
      sendMessage(mb.buf, MessageTypes.ClearAll);
       // todo use the current or default view
      iter.Reset();
      while (iter.MoveNext())
      {
     if (iter.Current is Autodesk.Revit.DB.View3D)
     {
         View3D = iter.Current as Autodesk.Revit.DB.View3D;
       break;
     }
     // this one handles Group.
      }
       ElementId activeOptId = Autodesk.Revit.DB.DesignOption.GetActiveDesignOptionId(doc);
      iter.Reset();
      while (iter.MoveNext())
      {
      Autodesk.Revit.DB.Element el = iter.Current as Autodesk.Revit.DB.Element;
      if (el.DesignOption == null || el.DesignOption.Id == activeOptId)
      {
          SendElement(el);
      }
     // this one handles Group.
      }
 }
开发者ID:nixz,项目名称:covise,代码行数:28,代码来源:COVER.cs


注:本文中的Autodesk.MoveNext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。