Skip to content

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

Answered by pmconne
shenshengyi asked this question in Q&A
Discussion options

You must be logged in to vote

Please be specific (or better, show code):

  • How did you obtain GeometricElementProps - IModelConnection.elements.getProps()?
  • What did you try to pass to IModelJsonReader.parse() - GeometricElementProps.geom?
  • What do you mean by "it failed"? Did it produce exceptions - if so, supply them.

Did you check if your GeometricElementProps object's geom member was undefined?
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?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shenshengyi
Comment options

@pmconne
Comment options

@shenshengyi
Comment options

Answer selected by shenshengyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants