How to create arc length dimensions in project by revit api ?

How to create arc length dimensions in project by revit api ?

DinhMinhDuc
Contributor Contributor
852 Views
2 Replies
Message 1 of 3

How to create arc length dimensions in project by revit api ?

DinhMinhDuc
Contributor
Contributor

Hi everyone,

This seems to be a basic function of Revit, but I have been searching it for a while and could not find the solution. The Revit help (link below) states NewDimension method can create a linear dimension only.

http://help.autodesk.com/view/RVT/2019/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Revit_Geometri...

Then how do we create non-linear dimension, such as Radial dimension, in project document.

I tried the overloaded NewDimension method:

NewDimension(View view,Line line,ReferenceArray references,DimensionType dimensionType)

I tried to supply a non-linear dimensionType to the method, but it throws exception “the dimension type is a non-linear dimension type”.

I know methods available for creating non-linear dimensions in family document, but how about project document?

What am I missing here?

Thanks

0 Likes
853 Views
2 Replies
Replies (2)
Message 2 of 3

raswart
Explorer
Explorer

You can use the AngularDimension Class to achieve this :

https://apidocs.co/apps/revit/2022/2e3b9201-d5fa-3cdb-53e4-8e204bda1fe5.htm

Message 3 of 3

DinhMinhDuc
Contributor
Contributor

Thank you very much ! 

0 Likes