how to create dimension on circular curve?

how to create dimension on circular curve?

Anonymous
Not applicable
1,400 Views
1 Reply
Message 1 of 2

how to create dimension on circular curve?

Anonymous
Not applicable

Hi.

I am trying to create dimension on circular curve like this.

 

image.png

I've tried,

 

ReferenceArray refArray = new ReferenceArray();
refArray.Append(circularCurve.GetEndPointReference(0));
refArray.Append(circularCurve.GetEndPointReference(1));

var point1 = new XYZ(startX, startY, 0);
var point2 = new XYZ(startX + diameter, startY, 0);

var line = Line.CreateBound(point1, point2);

doc.Create.NewDimension(view, line, refArray, dimensionType);

 

 

but circularCurve two end point are the same.

so it is created in this way.

image.png

 

and I've already tried this way. (create dummy curve, then create dimension and delete dummy curve.)

https://forums.autodesk.com/t5/revit-api-forum/how-can-i-create-dimension-line-that-is-not-parallel-...

 

is there any way to create dimension on circular curve?

 

help please

0 Likes
1,401 Views
1 Reply
Reply (1)