question

Stephane R avatar image
0 Likes"
Stephane R asked Patrick Zweekhorst commented

how to set 'Show Name' flag thru scripting?

I'm creating Plane(s) thru scripting with createinstance().
I can set object names, and location/size/color attributes; but the name does not display in the model.
How can I programmatically set the 'Show Name' flag that I see in the General tab of Properties ?

FlexSim 19.2.0
set flags
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Steven Hamoen avatar image
3 Likes"
Steven Hamoen answered Patrick Zweekhorst commented
@Stephane R

Please check the command: switch_hidelabel() in the helpfile

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Object object;
object.flags.showName = 1;

is also possible if you want to set the name flag.

1 Like 1 ·