Diameter Dimensions with Revit API

Diameter Dimensions with Revit API

dev-medo
Explorer Explorer
3,329 Views
4 Replies
Message 1 of 5

Diameter Dimensions with Revit API

dev-medo
Explorer
Explorer

Hello,

I have searched the forum and the API documentation and could not find a way to create a diameter dimension on a revit regular document. I know there is a function for diameter dimensions for family documents but I was wondering how diameter dimensions can be created in a regular document.

 

0 Likes
Accepted solutions (1)
3,330 Views
4 Replies
Replies (4)
Message 3 of 5

dev-medo
Explorer
Explorer

Thanks @jeremytammik for your response and I have voted for the idea you mentioned. have a nice day. 🙂  

0 Likes
Message 4 of 5

lingchris
Explorer
Explorer
public static AngularDimension Create(
Document document,
View dbView,
Arc arc,
IList<Reference> references,
DimensionType dimensionStyle
)
The AngularDimension.Value is Angular.How do I create arc length AngularDimension? AngularDimension.DimensionShape is readOnly.I have searched the document for a long time and still haven't found a way
0 Likes
Message 5 of 5

jeremy_tammik
Alumni
Alumni

The first step to finding out is normally to create the desired object manually through the end user interface and analyse the resulting database representation and relationships using RevitLookup and other tools:

  

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

  

Another first step might be to search the Internet, e.g., for something like "revit api create angular dimension":

  

https://duckduckgo.com/?q=revit+api+create+angular+dimension

  

That turns up a useful result. Lo and behold, it is right here in this forum:

  

https://forums.autodesk.com/t5/revit-api-forum/creating-angular-radial-dimensions-using-revit-api/td...

  

Oh dear, the news does not look good, at least not back in 2019. Apparently, this is not possible programmatically, or we don't know how, and there is an open wish list entry for it:

 

https://forums.autodesk.com/t5/revit-api-forum/creating-angular-radial-dimensions-using-revit-api/td...

  

It has 34 votes so far and needs more, so please vote for it as well.

  

And, to complete the list of options before raising a question: search the Internet, search this forum, search the Revit Idea Station, ...

  

Sorry I cannot provide an immediate solution for you.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open