本文整理汇总了C#中Floor.get_BoundingBox方法的典型用法代码示例。如果您正苦于以下问题:C# Floor.get_BoundingBox方法的具体用法?C# Floor.get_BoundingBox怎么用?C# Floor.get_BoundingBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Floor
的用法示例。
在下文中一共展示了Floor.get_BoundingBox方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Recognization
public static bool Recognization(Floor slab)
{
_slab = slab;
XYZ minAdj = new XYZ(-ErrorCTRL_SlabBB, -ErrorCTRL_SlabBB, -ErrorCTRL_SlabBB);
XYZ maxAdj = new XYZ(ErrorCTRL_SlabBB, ErrorCTRL_SlabBB, -ErrorCTRL_SlabBB);
BoundingBoxXYZ bbXYZ = slab.get_BoundingBox(_doc.ActiveView);
BoundingBoxIntersectsFilter bbif =
new BoundingBoxIntersectsFilter(new Outline(bbXYZ.Min + minAdj, bbXYZ.Max + maxAdj));
if ((new FilteredElementCollector(_doc)).WherePasses(bbif).
WherePasses(new ElementStructuralTypeFilter(StructuralType.Beam)).Count() != 0)
return false;
_columns = (new FilteredElementCollector(_doc)).WherePasses(bbif).OfCategory(BuiltInCategory.OST_Columns).ToList();
Level level = (Level)_doc.GetElement(slab.get_Parameter(BuiltInParameter.SCHEDULE_LEVEL_PARAM).AsElementId());
double offset = slab.get_Parameter(BuiltInParameter.FLOOR_HEIGHTABOVELEVEL_PARAM).AsDouble();
bool isFound;
_floor = _myLevel.GetFloor(out isFound, level, offset);
if (!isFound)
{
_abandonWriter.WriteAbandonment(slab, AbandonmentTable.LevelNotFound);
return false;
}
if (_doc.GetElement(slab.FloorType.get_Parameter(BuiltInParameter.STRUCTURAL_MATERIAL_PARAM).AsElementId()).Name
== _addiInfo.materialTypes[(byte)PGMaterialType.PrestressConcrete])
_isPrestress = true;
else _isPrestress = false;
return true;
}