On the front end, I want to use IModelJson.Reader.parse Construct a geometryquery based on geometricelement props data. Can you help me? thank you #339
-
Hi, I select a geometry on the web, and then get the geometricelementprops data (from backend) according to its ID, and try to pass the IModelJson.Reader.parse To construct a geometryquery object for frontend to use, But it failed. I see it in the imodeljs test code IModelJson.Reader.parse The data used is either from external files or from JSON format data written by ourselves. Is my idea wrong? Can you help me? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Please be specific (or better, show code):
Did you check if your What specifically are you trying to accomplish? |
Beta Was this translation helpful? Give feedback.
Please be specific (or better, show code):
IModelConnection.elements.getProps()
?IModelJsonReader.parse()
-GeometricElementProps.geom
?Did you check if your
GeometricElementProps
object'sgeom
member wasundefined
?IModelConnection.elements.getProps()
omits the geometry because (1) it can be an extremely large amount of data that (2) most callers don't care about and (3) only a subset of it can be processed on the front-end.What specifically are you trying to accomplish?