question

sara S2 avatar image
0 Likes"
sara S2 asked Cliff King answered

Why I get an error message when I duplicate objects ?

Hello,

I want to model hospital surgical ward, where there are several rooms having the same objects. I created one room objects and I select this room’s objects (Figue1) and 'copy & paste' them in order to generate the same objects in the other rooms. But, I get some error messages that I overlooked. Then, when I want to save my model, I get this error (Figure2) in saving. Besides, I remark that the copied objects have a very big number in their names than the number of the existing objects (the same object, for example the first OR table is OR1 but the second OR table is OR199 !) (Figue3).

I would be grateful for your help.

figure1.png

figure2.png

figure3.png

FlexSim 19.0.0
objects duplication
figure1.png (284.5 KiB)
figure2.png (224.1 KiB)
figure3.png (333.7 KiB)
· 2
5 |100000

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Can you post the model file before you duplicated anything?

0 Likes 0 ·
sara S2 avatar image sara S2 Matthew Gillespie ♦♦ commented ·

I have just the model before I start duplicating operating room’s objects (the attached model). I notice that in this step (before I start duplicating operating room’s objects) I had no problem despite I duplicate the objects (the exam tables and the BasicFR objects) that are in the surgical ward.

Actually, I want to ensure that duplicating objects is not going to generate any problems when I complete the model and run the simulation.

model2.fsm

0 Likes 0 ·
model2.fsm (75.7 KiB)
Cliff King avatar image
0 Likes"
Cliff King answered

There's nothing inherently wrong with copy and pasting (Ctrl C - Ctrl V) objects in a model.

The automatically assigned object names are based on total object count, not OR object count, but you can easily rename all your ORs by selecting them all (red bounding box will appear around them), then left-click on one of the ORs in the selected set of objects, and then in the Quick Properties window look for the "ab" icon button to the right of the name field and use it to rename all the selected objects with a sequential number tagged onto the end of the name.

As for your model2.fsm file, I didn't see anything visible in the 3D window until after I used the View > Open Default Workspace menu option. After that I could see the model and successfully copy/paste the OR object without errors.

· 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.

sara S2 avatar image sara S2 commented ·

Okay, thank you @Cliff King.

0 Likes 0 ·
zacharyh avatar image
0 Likes"
zacharyh answered Cliff King converted comment to answer

There might be an error simply with where you saved it or the file name. Try renaming the model and saving it. If that doesn't work, please send your model and we can take a look at it.

When you copy and paste an item in the model, it will look at how many items you have in the Tree and then give it a number associated with what number item it would be in the model. That is why you are getting OR199. You can rename it to be OR2 after pasting it.

· 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.

sara S2 avatar image sara S2 commented ·

Hi @zachary.h, thank you for your reply.

I tried to rename it but no result, so I could not save it -I don't have this model anymore- but I keep a previous version (the att

ached model) of it - before I start duplicating objects of the operating room.

Concerning objects names, I find that is inconsistent to attribute such number ‘199’ to the second OR while I have only two OR in the tree ! So I want to ensure that is not going to make problems when I run the model.

0 Likes 0 ·
model2.fsm (75.7 KiB)