本文主要是介绍revit API 获得 wall 真正 locationCurve,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Curve GetWallRealLocationCurve(Wall m_wall){Curve oldCurve = (m_wall?.Location as LocationCurve)?.Curve;if (oldCurve == null){return null;}double baseOffset = 0;var param = m_wall.get_Parameter(BuiltInParameter.WALL_BASE_OFFSET)?.AsDouble();if(param != null && param.HasValue){baseOffset = param.Value;}Transform trans = Transform.CreateTranslation(new XYZ(0,0,baseOffset));return oldCurve.CreateTransformed(trans);}
这篇关于revit API 获得 wall 真正 locationCurve的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!