2016-11-09 7 views
0

寸法が明確に見えるように、要素からある値までのギャップを設定したいと思います。スクリーンショットをご覧ください。Wall Dimensioning

現在、このようになっています。

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); 
関連する問題