-
Hey everyone, I'm working with a road model and I'm trying to calculate certain geometry properties on the front-end. It involves for example calculating distances between linear elements or finding points lying on these elements. I'm asking for help how to tackle this issue. As far as I know, the best way to tackle this would be to represent these linear elements as Curve/Path objects and then use their methods to calculate everything. However, with the model I'm provided, I've been only able to query for their respective geometry streams in binary format which I'm afraid is not the right approach to obtain a Path object. This is a piece of code I'm using to query those geometryStreams: I thank you in advance for any help you can provide! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The right approach is to use GeometryStreamIterator in backend code to get the geometric primitives. |
Beta Was this translation helpful? Give feedback.
-
@mato5 You can now query geometry from the frontend using IModelConnection.Elements.loadProps. |
Beta Was this translation helpful? Give feedback.
@mato5 You can now query geometry from the frontend using IModelConnection.Elements.loadProps.
Details in changelog.
These changes will be available in the 2.16.0-dev.10 packages.