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