Dimensioning family, can't get reference of a reference plane

Dimensioning family, can't get reference of a reference plane

dem1st
Enthusiast Enthusiast
696 Views
3 Replies
Message 1 of 4

Dimensioning family, can't get reference of a reference plane

dem1st
Enthusiast
Enthusiast

NewLinearDimension method requires ReferenceArray parameter. Reference Planes were successfully created. Now why can't I get Reference of the refplane1 and refplane2 ?

 

dem1st_1-1637151784535.png

 

Things worked in this case.

 

Thanks in advance!

0 Likes
Accepted solutions (1)
697 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

reference_property_of_reference_plane.png

 

 

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

jeremy_tammik
Alumni
Alumni
Accepted solution

What version of Revit are you working with. I searched for that property in the API docs, and it is not available in current releases. Did you just copy the code from some obsolete source? If so, you need to check what changed in the API since then and perform an appropriate migration of obsolete code:

 

https://thebuildingcoder.typepad.com/blog/migration/

  

  

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

dem1st
Enthusiast
Enthusiast

Yes, apparently it worked eariler and nowadays it turned out to be obsolete. Thanks for pointing to the website and to the importance of using revitapidocs cause it does provide full info on every class's member.

0 Likes