2016-11-09 110 views
0

我想设置元素与某个值之间的差距,以便尺寸清晰可见。请在屏幕截图下方找到。墙面尺寸

目前看起来像这样。

Currently it's looking like this

但我想实现像下面。

But I would like to achieve like below

回答

0

你实际上是在对线路的控制,当你创建维度。从Revit中取出一条线,然后将其转换并垂直于您感兴趣的线偏移它:(给定dbView和参考阵列以及曲线)

//create your line along the element you want to dimension 
Line line = Line.CreateBound(locCurve.Curve.GetEndPoint(0), locCurve.Curve.GetEndPoint(1)); 

//Compute the perpendicular of that line (I took advantage of the fact that I was working in plan: 
XYZ perpendicular = line.ComputeDerivatives(0.5, true).BasisX.CrossProduct(new XYZ(0, 0, 1)); 

//transform the line to the new offset location: 
Line offsetline = line.CreateTransformed(Transform.CreateTranslation(perpendicular.Normalize())) as Line; 

//Create the dimension. 
revitDoc.Create.NewDimension(dbView, offsetline, aDimensionRefArray);