« वापस

Get model which is currently shown in the modeling editor

कॉंबिनेशन व्यू फ्लॅट व्यू Tree दृश्य
थ्रेड्स [ पिछला | अगला ]
toggle
Get model which is currently shown in the modeling editor
adoxx modeling toolkit active model
उत्तर
2/3/20 6:08 अपराह्न
Dear ADOxx Team,

How is it possible to get the model which is currently shown in the modeling editor (model which is currently edited by the user)?


With the cmd "GET_ACT_MODEL" i get all loaded models ...

Thank You!

(ADOxx 1.5, Modeling Tookit, Own DSL Model)

BR
Martin

RE: Get model which is currently shown in the modeling editor
उत्तर
5/3/20 3:01 अपराह्न as a reply to Martin Paczona.
It is working =)
I am using the ON_EVENT "CreateModel"
which returns the "modelid" which i can now use to access the current active model / shown model.

ON_EVENT "CreateModel"
{
  EXECUTE file: "db:\\scripts_predefined_objects.asc"
  CREATE_PREDEFINED_OBJECTS nModelID: ( modelid )
}

The solution is described in:
https://www.adoxx.org/live/en_GB/faq/-/message_boards/view_message/354495#_19_message_353322