AssemblyInstance object has null BoundingBox property

AssemblyInstance object has null BoundingBox property

Anonymous
Not applicable
463 Views
1 Reply
Message 1 of 2

AssemblyInstance object has null BoundingBox property

Anonymous
Not applicable

I have an AssemblyInstance object and I want to get its boundingbox property.

I use the following code:

BoundingBoxXYZ boundingBoxXYZ = ele.get_BoundingBox(null);

But the result object boundingBoxXYZ is always null.

 

Does anyone knows why this object cannot get the BoundingBox property? Thanks for your help.

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

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

 

Try using 

BoundingBoxXYZ boundingBoxXYZ = ele.get_BoundingBox(document.activeview);

 

Check the remarks section in the below link

https://www.revitapidocs.com/2016/def2f9f2-b23a-bcea-43a3-e6de41b014c8.htm 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes