本文整理汇总了C#中FamilyInstance.GetSubComponentIds方法的典型用法代码示例。如果您正苦于以下问题:C# FamilyInstance.GetSubComponentIds方法的具体用法?C# FamilyInstance.GetSubComponentIds怎么用?C# FamilyInstance.GetSubComponentIds使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FamilyInstance
的用法示例。
在下文中一共展示了FamilyInstance.GetSubComponentIds方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Stream
private void Stream( ArrayList data, FamilyInstance famInst )
{
data.Add( new Snoop.Data.ClassSeparator( typeof( FamilyInstance ) ) );
data.Add( new Snoop.Data.Object( "Host", famInst.Host ) );
data.Add( new Snoop.Data.Object( "Symbol", famInst.Symbol ) );
data.Add( new Snoop.Data.OriginalInstanceGeometry( "Original Geometry", famInst, m_app.Application ) );
try
{
data.Add( new Snoop.Data.Enumerable( "Sub components", famInst.GetSubComponentIds(), famInst.Document ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "Sub components", ex ) );
}
try
{
data.Add( new Snoop.Data.Object( "Super component", famInst.SuperComponent ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "Super component", ex ) );
}
try
{
data.Add( new Snoop.Data.Object( "Room", famInst.Room ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "Room", ex ) );
}
try
{
data.Add( new Snoop.Data.Object( "From room", famInst.FromRoom ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "From room", ex ) );
}
try
{
data.Add( new Snoop.Data.Object( "To room", famInst.ToRoom ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "To room", ex ) );
}
data.Add( new Snoop.Data.Enumerable( "Material", famInst.GetMaterialIds( false ), famInst.Document ) );
try
{
data.Add( new Snoop.Data.Object( "Space", famInst.Space ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "Space", ex ) );
}
FilteredElementCollector filter = new FilteredElementCollector( famInst.Document );
IList<Element> phases = filter.OfClass( typeof( Phase ) ).ToElements();
foreach( Element e in phases )
{
try
{
data.Add( new Snoop.Data.Object( "get_Space(" + e.Name + ")", famInst.get_Space( e as Phase ) ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "get_Space(" + e.Name + ")", ex ) );
}
}
data.Add( new Snoop.Data.String( "Structural type", famInst.StructuralType.ToString() ) );
// TBD: throws an exception if not the right type!
try
{
data.Add( new Snoop.Data.String( "Structural usage", famInst.StructuralUsage.ToString() ) );
}
catch( Exception ex )
{
data.Add( new Snoop.Data.Exception( "Structural usage", ex ) );
}
data.Add( new Snoop.Data.String( "StructuralMaterialType", famInst.StructuralMaterialType.ToString() ) );
data.Add( new Snoop.Data.ElementId( "StructuralMaterialId", famInst.StructuralMaterialId, famInst.Document ) );
data.Add( new Snoop.Data.Object( "MEP model", famInst.MEPModel ) );
data.Add( new Snoop.Data.Bool( "Can flip facing", famInst.CanFlipFacing ) );
data.Add( new Snoop.Data.Bool( "Facing flipped", famInst.FacingFlipped ) );
data.Add( new Snoop.Data.Bool( "Can flip hand", famInst.CanFlipHand ) );
data.Add( new Snoop.Data.Bool( "Hand flipped", famInst.HandFlipped ) );
data.Add( new Snoop.Data.Bool( "Can rotate", famInst.CanRotate ) );
data.Add( new Snoop.Data.Xyz( "Facing orientation", famInst.FacingOrientation ) );
data.Add( new Snoop.Data.Xyz( "Hand orientation", famInst.HandOrientation ) );
//.........这里部分代码省略.........