- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone. I try to use new 2019 API for structural connections.
Unfortunatly new element "Plate" have no information about his volume, but I can get "Solid" through get_Geometry() method, and write the volume value in the project parameter (and calculate weigth).
But with the plates included in the joint, the situation is more complicated. Such plates are "Subelement", not "Element", and have their own new methods and properties.
Get the plates I can through the method StructuralConnectionHandler.GetSubelements().
API provides Subelement.GetGeometryObject(View) method, it returns GeometryObject, but this is not Solid - I don't understand what kind of object it is, and how to get the amount.
I can perform the StructuralConnectionHandler.get_Geometry method, but it returns a lot of Solids (including bolts, welding, etc.), and I do not know what exactly is from plates. I'm at a dead end.
Btw, with single plate here is not so simple too, I can get geometry only through the Options across the view with a high level of detail:
Options opt = new Options() { View = activeView }; GeometryElement geoElem = plate.get_Geometry(opt); //ok Solid sol = geoElem.First() as Solid;
Submission "Level of Detail - Highest" returns null:
Options opt = new Options() { DetailLevel = ViewDetailLevel.Fine };
GeometryElement geoElem = plate.get_Geometry(opt); //returns null
It looks like an error in the API.
Sample project with document-level macros in attachment. Thanks for the answer.
Alexander Zuev
In BIM we trust
Facebook | Linkedin | Telegram
Solved! Go to Solution.