Import objects from 3D library

Import objects from 3D library

mhosseini457NG
Advocate Advocate
33 Views
11 Replies
Message 1 of 12

Import objects from 3D library

mhosseini457NG
Advocate
Advocate

[ FlexSim 22.1.2 ]

Hi,

I'm trying to import objects from 3D library, but when I do import almost many of them the position of the object changes with a big offset from what should be. See pic below when new shape is imported from 3D library:

screenshot-226.png

Is there any workaround for this issue?


0 Likes
Accepted solutions (1)
34 Views
11 Replies
Replies (11)
Message 2 of 12

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

Where does that chair shape come from and what format is it? Which object are you trying to change to this shape?

Many formats should now automatically scale the objects when you import them. Some information for importing shapes here.

Try putting a new Shape object in the model and load into that. Then if that looks correct, copy the visuals, size and factors to your object using the "Edit Selected Objects" tool.

If you can't resolve it by reimporting then you can use the shape offset factors to position it in the yellow bounding box.


0 Likes
Message 3 of 12

mhosseini457NG
Advocate
Advocate

It's coming from https://3dwarehouse.sketchup.com/ and the format is .skp (version 2019). I tried with other versions but doesn't work. When I import that object I just go to More Visuals > Rotate it 180 degrees so the side that user sits will be in accordance with the shape but that 180 degree rotation creates an offset issue.

0 Likes
Message 4 of 12

jason_lightfootVL7B4
Autodesk
Autodesk
It imports to the correct size when using a fresh shape. You could try the collada file from that site but I think it's the process steps that are causing this. I would add a new shape, change it to the chair (should size correctly) and copy its shape and attributes as I mention above.

Also note that this chair is very heavy with polygons - 17MB is a lot for such a small asset - something similar could be created with a fraction of the polygons.

0 Likes
Message 5 of 12

mhosseini457NG
Advocate
Advocate

You're right, when using the shape first and then load the object into it, it doesn't create that problem. However since it's not a location object anymore (like a Wooden Chair) and it's a "Shape" the user doesn't sit on it, just stand next to the object. See below:

screenshot-227.png

0 Likes
Message 6 of 12

jason_lightfootVL7B4
Autodesk
Autodesk
Right, but you should be able to copy the visual from the shape to your location object using the Edit Selected Objects tool.
0 Likes
Message 7 of 12

mhosseini457NG
Advocate
Advocate

ok, got it. I did in the model attached here. Now what needs to be done so the patient sits in the chair (Wooden Chair 2) without any visual offset?

import_object_into_shape_model.fsm

0 Likes
Message 8 of 12

jason_lightfootVL7B4
Autodesk
Autodesk

That's unfortunate - the original 3D model is rotated 180 degrees from what we need. You can alter the position in the bounding box using the shape factors found under "More Visuals"

1655999745588.png

Here I rotated 180 in Z and translated to 0.79 in Y.

With those factors the person is lower that the seat of the chair so you can just resize the whole object to 0.84 height and it should look correct.

1656000116305.png

0 Likes
Message 9 of 12

mhosseini457NG
Advocate
Advocate
Thanks, How did you come up with 0.79 and 0.84 ? Should I just try different numbers and see what height would work? By resizing the object do you mean just changing the Y in Size to 0.84?
0 Likes
Message 10 of 12

jason_lightfootVL7B4
Autodesk
Autodesk
Trial and error - it used to be that the shape would update as the shape factors were altered - this seems no longer to be the case unfortunately.


The 0.79 in Y is a shape factor.

The 0.84 in Z was the whole object - done in the properties panel - not shape factors.

Message 11 of 12

jason_lightfootVL7B4
Autodesk
Autodesk

Instead of trying to figure this out each time for this shape you can put the contents of this zipped file in the same folder as your .skp file - it will then size it correctly and apply the factors when you import the shape.


EOS_Polo.zip

Message 12 of 12

mhosseini457NG
Advocate
Advocate
Got it, thanks so much!
0 Likes