question

Sharon L3 avatar image
0 Likes"
Sharon L3 asked Emily Hardy edited

Create 100 processors easily

If I have a dual process of 100 machines, how do I copy all properties of the first machine by 100 times easily? Dragging one processor for 100 times is really inefficient...

Choose One
processorduplicateselected object
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 Emily Hardy edited

The tool is called "Edit Selected Objects". You find the tool inside the View menu in the above main menu row.

This tool manipulates objects which are selected. You can see selected objects, when they are inside a red colored frame. If you click on objects, they become highlighted. While you hold the ctrl key and click an object, the object gets into the state of a selected object.If you hold the shift key and draw a box over objects, they get into the state of selected objects, too.
If you mark a object as highlighted, you copy to the All Variables (attributes, labels, triggers) by this function to all selected objects.


· 4
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

In some Flexsim Versions you need a valid license to use this feature.

0 Likes 0 ·
Sharon L3 avatar image Sharon L3 commented ·

Jörg,

Thanks for the reply. Actually if I do copy variables from highlighted item, I still need to drag the processor into the model and then copy variables. I'm actually looking for if I can duplicate the processor directly by 100 times without dragging the initial 100 processor into the model.

0 Likes 0 ·
jing.c avatar image jing.c Sharon L3 commented ·

Try command createcopy() with a for-loop.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Sharon L3 commented ·

There is exactly this function in the "Edit Selected Object" tool. You find in the second picture of my answer in the first column. You select one or more objects and click on the Duplicate button. You have to move the duplicated objects individually. You can align the selected objects to a highlighted object to a coordinate by clicking on the X, Y or Z button in the tool. You can copy the rotation ( for example RX) or the size (SX) for each coordinate. Please investigate the tool by yourself.

If you have a table of coordinates then you need source code to accomplish an automated setting of positions.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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