question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Jason Lightfoot commented

How to import wrl by keeping color AND correct bounding box

I'm trying to import 3D files from a customer using SolidWorks. He exports the files as vrml 1.0.

When I open them in FlexSim, they are the correct scale and colors but the bounding box is not the right size as seen in this photo which makes it difficult to work with. The box is the size of the original FlexSim object (TaskExecuter).

screenshot-2022-11-21-140939.png

In another post, I saw that the solution is to import in AC3D, then export to .ac. I did that and it fixes the bouding box but I loose the colors.

screenshot-2022-11-21-141005.png

I made sure to check the box: VRML1 Flexsim mode in AC3D:

screenshot-2022-11-21-143234.png

Any ideas what I'm doing wrong and how to get the colors AND the correct size bounding box?

I tried other Solidworks exports file formats but none do a better job so far.

Thanks !

FlexSim 22.2.3
colorbounding boxvrml
5 |100000

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

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier answered Patrick Cloutier commented

I found a solution which works perfectly:

  1. Import the wrl file into AC3D
  2. Save the file in AC3D format (.ac)
  3. Import the .ac file in the FlexSim Object (this sets the correct bounding box)
  4. Import the .wrl file in the same FlexSim Object (this sets the correct colors and textures)

Et voilà !!

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

Patrick Cloutier avatar image Patrick Cloutier commented ·
The interface doesn't let me accept my own answer...
0 Likes 0 ·
Kavika F avatar image
0 Likes"
Kavika F answered Jason Lightfoot commented

Hey @Patrick Cloutier, you can adjust the bounding box of 3D shapes by clicking on it, going to the Properties panel -> Visuals -> More Visuals -> Shape Factors -> Edit. This will give you a menu similar to the one found in the Visuals panel where you can change the properties of the bounding box.

1669070398086.png

1669070471315.png


1669070471315.png (15.6 KiB)
1669070432071.png (68.1 KiB)
· 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·
Thanks for your answer but what I want is to figure out how to import the shape directly with the right bounding box (like .vrml) AND colors (like .ca) without having to play with the factors after import because I have dozens of shapes to import. I'm hoping somebody knows if there is something I can change in AC3D to fix that.


And, by the way, the shape factors do not change the bounding box size but the size of the object within the bounding box. To change the size of the bounding box, you have to change the size directly in the properties panel on the right. And then change the shape factors to rechange the size of the object. A big mess that I want to avoid.

Thanks,

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Patrick Cloutier commented ·
It looks like you are importing an assembly. I am not quire sure if it has any meaning, but perhaps the bounding box is a result of the exported structure and the dimensions. So I would test if I can achieve a desired bounding box by a different feature and component structure in the cad program before I export the data into VRML1.0.
0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Joerg Vogel commented ·
Found the solution. See above.

Weird I never got an email notification about your comment.

0 Likes 0 ·
Show more comments