I was trying to replace 100's of processors in the place of combiner at the same time and it should not change only the visual it should include the properties too, without changing the name of the object. is it possible ?
Thanks in Advance
I was trying to replace 100's of processors in the place of combiner at the same time and it should not change only the visual it should include the properties too, without changing the name of the object. is it possible ?
Thanks in Advance
This is very much possible in FlexSim. First, add the combiners to a group. Then using a process flow or through a script in the script console record the location and name of the combiners in a global table. Then using another pf or script you can look at the recorded data and create machines with the same name and location.
Here's a sample model. The processor and combiner copies are made from the template machines in the model ("Combiner1 and Processor1).
@Tamilselvan , can it be that objects you are going to destroy are still present when you insert and copy data to new machines? It is so, that it is not allowed to have two objects with identical names in a model. If you rename an object and it exists by name twice you get a message to be absolutely sure about it.
Attached is the modified model adding combiner names also in a column.
Another solution is based on SQL Queries.
Table Q = Table.query("SELECT Object,Object.name,Location FROM Objects() WHERE Class = 'Combiner' "); //Selects the combiners from the model Q.cloneTo(Table("GlobalTable1"));// Clone to a Global table name, location Table GT = Table("GlobalTable1"); GT.addCol(); // adding an extra colum to GT for Processor Class int ColNo = GT.numCols; for(int k=1;k<=GT.numRows;k++) { GT[k][ColNo] = "Processor"; } GT.setColHeader(ColNo,"Class"); Table Q1 = Table.query("DELETE FROM Objects() WHERE Class = 'Combiner' ");// Delete The Combiners Table Q2 = Table.query("INSERT INTO Objects()(Class,Name, Location) SELECT Class,name,Location FROM GlobalTable1"); //Placing ProcessorsIn the location of Combiners
You can run this script on the script console.
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved