Skip to content
Discussion options

You must be logged in to vote

Hi, There are a couple of ways to do this depending on your context.

  1. Best option if you have a iTwin application running locally. You can access and acquire the active iModel connection with call like useActiveIModelConneciton. You can iterate over all the models using iModelConnection.models. Each item returned in the iterator returns a ModelState object. This has a name field that gives the value you are looking for. There is other data about the model that you might find useful as well
  2. You can run a ECSQL query from your app or on the cloud in iModel Console: SELECT e.CodeValue from BisCore.Element e JOIN BisCore.PhysicalModel p on e.ECInstanceId = p.ECInstanceId. You can play around …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zhang-zimin
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