首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
BoundingBoxUV与BoundingBoxXYZ
】的更多相关文章
BoundingBoxUV与BoundingBoxXYZ
start UIApplication app = commandData.Application; Document doc = app.ActiveUIDocument.Document; ); // Element elem = null; BoundingBoxXYZ bbXYZ = elem.get_BoundingBox(doc.ActiveView);//三维矩形,立方体 //找到线穿过的墙 Outline outline = new Outline(bbXYZ.Min, bbXY…
筛选出和该元素相交的元素之BoundingBoxIntersectsFilter
//假设元素为ee BoundingBoxXYZ box = ee.get_BoundingBox(doc.ActiveView); //创建outline,通过boundingboxintersect过滤器 Outline myOutLn = new Outline(box.Min, box.Max); BoundingBoxIntersectsFilter boxee = new BoundingBoxIntersectsFilter(myOutLn); FilteredElementCol…
Revit API根据链接文件开洞
开洞信息数据: ]); ; ; ; ; , , ) * (dHeigh / + iUp) / + iLeft) / , , -) * (dHeigh / + iDown) / + iRight) / ; ; ) - lCurve.Curve.get_EndPoint(); …
Revit API找到风管穿过的墙(当前文档和链接文档)
start [Transaction(TransactionMode.Manual)] [Regeneration(RegenerationOption.Manual)] public class cmdDuctWall : IExternalCommand { public Result Execute(ExternalCommandData cmdData, ref string msg, ElementSet elements) { UIApplicatio…
Revit API创建详图视图
start //创建详图视图 Transaction ts = new Transaction(doc, "http://greatverve.cnblogs.com"); ts.Start(); Reference refElem = selection.PickObject(ObjectType.Element, "选择"); Element elem = doc.GetElement(refElem); BoundingBoxXYZ bBox = elem.g…
Revit API遍历全部风管,找到与风管相关的墙开洞
涉及向量计算,求相交等相关技术. ) { foreach (Face face in solid.Faces) { PlanarFace pf = face as PlanarFace; if (pf != null) { …
revit 碰撞检测相关
Revit二次开发:由房间获取房间的墙 之前用的方法是由房间边界构成的Solid,计算与该Solid相交的Element,然后判断是否为墙.相对来说这个方法比较通用,可以检索出房间的楼板.窗户等各种构件. SpatialElementBoundaryOptions se=new SpatialElementBoundaryOptions(); se.SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.Center…