Way to find center reference of conduit

Way to find center reference of conduit

ambarc4URCP
Participant Participant
180 Views
1 Reply
Message 1 of 2

Way to find center reference of conduit

ambarc4URCP
Participant
Participant

I want to develop an automation solution that draws a center point dimension of conduit with respect to the grid. I have found a line reference from conduit geometry. But calling the create dimension function gives an error in the invalid number of references. Does anyone have any idea? 

0 Likes
181 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Well, the first thing I always suggest is to research for the optimal solution and best practices manually in the end user interface. How would you achieve what you need there? You can use that solution to research how it is represented in the BIM database elements properties and relationships:

  

  

That proves that the desired solution is possible at all. Once that is clear, how to achieve it programmatically? Some tricky dimensioning tasks were solved using stable reference voodoo:

  

  

You might want to check whether the conduit centre line Curve object has valid end point references that you con use, cf., the GetEndPointReference method::

  

  

What you really need is a midpoint reference, though, meseems.

  

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