Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create aligned dimension between rebars

1 REPLY 1
Reply
Message 1 of 2
benITs
1084 Views, 1 Reply

Create aligned dimension between rebars

I was trying to create new aligned dimension between rebars. The error message I'm getting is: The references are not geometric references.

 

Is there a work around so that I can create dim for rebars?

1 REPLY 1
Message 2 of 2
benITs
in reply to: benITs

I was able to solve the issue. Rebar doesn't give any geometry. So all trial to generate dim from Rebar was failing.

The method I tried was with the ActiveView, selected rebar Options.

Snippet

Options options = new Options();

options.ComputeReferences = true; options.IncludeNonVisibleObjects = true; //options.DetailLevel = ViewDetailLevel.Fine; options.View = uiDoc.Document.ActiveView;

If I select the Geometry Elements from this and filter only lines, I can get the reference of that lines.

Hope this helps someone in future.  

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community