How to get a Solids location in the project

How to get a Solids location in the project

Anonymous
Not applicable
6,149 Views
20 Replies
Message 1 of 21

How to get a Solids location in the project

Anonymous
Not applicable

I am struggling to get the true location of a Solid in a Casework Instance.

 

I can get the boundingbox of the solid, but the location is always far away from the Casework Instance.

 

I guess that there must be som kind of transformation method to solve this, but all methods that I have tried returns the same result.

 

Any ideas?

 

Jan Grenov

0 Likes
Accepted solutions (2)
6,150 Views
20 Replies
Replies (20)
Message 21 of 21

jeremytammik
Autodesk
Autodesk

Dear Jan,

 

Thank you for sharing your solution.

 

I took the opportunity of integrating that into the SetoutPoints add-in and migrating it to Revit 2017 at the same time:

 

https://github.com/jeremytammik/SetoutPoints

 

I did not find anything to clean up after all, once I took a closer look.

 

I were you, I would probably not have introduced an additional BboxInfo class, but used the existing Revit BoundingBoxXYZ one instead.

 

The Building Coder samples include an extension method for that class that can be used in a very similar fashion:

 

Util.cs > JtBoundingBoxXyzExtensionMethods > ExpandToContain

 

https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/U...

 

The new SetoutPoints version including your enhancements is release 2017.0.0.3:

 

https://github.com/jeremytammik/SetoutPoints/releases/tag/2017.0.0.3

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder