question

Jay Khedekar avatar image
0 Likes"
Jay Khedekar asked Joerg Vogel commented

Delete 3D object created only by script.

Hello
I have created few objects by script at the start of model. However, I only want to to use

  1. Table.query("DELETE FROM Objects()");

to delete objects created by script and not the one I manually dragged and dropped. Is there a way I could do this?

FlexSim 23.0.15
flexscriptautobuild
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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel commented
  1. Table.query("DELETE FROM Objects() WHERE Name != 'Queue1'");

Exclude by Name

Get all attribute columns. You need a global table for this in toolbox.

  1. Table myTab = Table.query("SELECT * FROM Objects()");
  2. myTab.cloneTo(Table("GlobalTable1"));
· 5
5 |100000

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