How do I select an element template in VBA?
Is there a similar input like that one for text-styles? (ACTIVE TEXTSTYLE)
Gottfried Pauler said:How do I select an element template in VBA?
VBA currently has no objects that represent an Element Template.
The nearest you will get is to record a macro while exercising the user interface.
recording a VBA macro
Regards, Jon Summers
Regards, Jon Summers LA Solutions
Thank you for your answer!
When recording a macro and selecting an element template in the user interface nothing is recorded (MicrostationXM 08.09.04.88).
Does the following (from Help > Contents) help?
Active Element Template
Sets the Active Element Template, which is a set of element properties that can be applied to an element that is being placed or can be applied to existing elements.
An element template is defined in the Element Templates dialog (Element > Element Templates) .
Key-in: Template active <template_group_name\template_name>
Thank you, that is what I was looking for - this Key-in can be sent to Microstation within my VBA-application.