0
치수를 명확하게 볼 수 있도록 요소에서 약간의 값으로 간격을 설정하고 싶습니다. 스크린 샷을 아래에서 찾으십시오.Wall Dimensioning
현재 이런 모양입니다.
하지만 아래와 같이 달성하고 싶습니다. 당신이 차원을 만들 때
치수를 명확하게 볼 수 있도록 요소에서 약간의 값으로 간격을 설정하고 싶습니다. 스크린 샷을 아래에서 찾으십시오.Wall Dimensioning
현재 이런 모양입니다.
하지만 아래와 같이 달성하고 싶습니다. 당신이 차원을 만들 때
당신은 라인의 제어에 실제로. 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);