Placing a Linear Dimension object on Family Instances

Placing a Linear Dimension object on Family Instances

jmadeley37KVE
Contributor Contributor
642 Views
2 Replies
Message 1 of 3

Placing a Linear Dimension object on Family Instances

jmadeley37KVE
Contributor
Contributor

Hi all,

 

I need to place a Linear Dimension on a series of Family Instances using the Revit API but can't seem to figure it out.

 

I need to get the Geometric References from the Instances but can't seem to get it right. The location property in this case are LocationPoints but I can't seem to make these ReferencePoints.

 

If anyone can help I would really appreciate it 😄

 

Thanks

Jack

Accepted solutions (1)
643 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

Dear Jack, 

  

Maybe you can check first whether you can retrieve any useful references either from the FamilyInstance itself or from the geometry returned setting Options.ComputeReferences = true:

  

     

Good luck and best regards,

  

Jeremy

  

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

jmadeley37KVE
Contributor
Contributor

Thanks Jeremy!

 

After reading your links I realised I need a Geometric Reference rather than an Element Reference to add to the ReferenceArray for the Dimension. I found a mixture of point and line geometry instance references from the FamilySymbol's i'm using and have managed to get it to work!

 

Thanks for all the help 🙂

0 Likes