Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modeling simple bar #1

Open
ghost opened this issue Dec 22, 2018 · 11 comments
Open

Modeling simple bar #1

ghost opened this issue Dec 22, 2018 · 11 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2018

Hello,

I am trying to model a simple Aluminum bar
bar

with the dimensions shown (in mm), but instead, I am getting 6 bars (one for each face) that are 500um thick each. Is this normal?

<solids> <box name="WorldBox" x="100" y="100" z="100" lunit="m"/> <box name="board1" x="0.0603201" y="1" z="0.0005" lunit="m"/> <box name="board2" x="0.142635" y="1" z="0.0005" lunit="m"/> <box name="board3" x="0.0603201" y="1" z="0.0005" lunit="m"/> <box name="board4" x="0.142635" y="1" z="0.0005" lunit="m"/> <box name="board5" x="0.0603201" y="0.142635" z="0.0005" lunit="m"/> <box name="board6" x="0.0603201" y="0.142635" z="0.0005" lunit="m"/> <box name="testPart-1_Box" x="99" y="99" z="99" lunit="m"/> </solids>

How can I just get one single bar in the gdml output file?
Thanks!

@cvuosalo
Copy link
Owner

This behavior is the default. SolidWorks stores the faces of the bar, and those are what the converter reads out of SolidWorks. The issue is how the converter can distinguish between a solid bar and a hollow rectangular box. I will have to investigate how SolidWorks represents these two cases.

If you could create a SolidWorks 2018 assembly with a solid bar and a hollow rectangular box with a slightly different size, that would be helpful. Then please post a link to the assembly and all its parts.

I will be on vacation until January, but I can look into the issue then.

@ghost
Copy link
Author

ghost commented Dec 22, 2018 via email

@ghost
Copy link
Author

ghost commented Dec 22, 2018

outputs.zip
Here are the files.

@ghost
Copy link
Author

ghost commented Jan 14, 2019

Any insights as to what is going on? @cvuosalo Thanks!

@cvuosalo
Copy link
Owner

@danielmtzz: I looked at the files you posted, but they are not what I need. I would like to look at the SLDASM and SLDPRT files for your model so I can see how the bar is represented in SolidWorks.

@ghost
Copy link
Author

ghost commented Jan 15, 2019

test_solidworks_bars.zip

Here they are. Sorry for not getting you what you needed before!
@cvuosalo
~Daniel

@cvuosalo
Copy link
Owner

@danielmtzz: Thanks for the models. The problem is that SolidWorks provides the faces of the bar, but it is difficult to tell whether they belong to a solid or hollow bar. Currently, the converter assumes the bar is hollow. I have to think about how the converter can recognize the faces belong together so it can assemble the solid bar.

@ghost
Copy link
Author

ghost commented Jan 16, 2019

Makes sense. Thanks! @cvuosalo

@cvuosalo
Copy link
Owner

@danielmtzz: I need realistic models for comparison. The bar_SurfaceAssem model has zero mass. Could you please make a model of a bar that has a complete surface (no holes) on the outside but hollow on the inside? Please give it a reasonable mass and specify the material name. Also, it would be good to include a material name for the bar_Assem. If I can compare more realistic models, I can see how SolidWorks represents the hollow bar vs. the solid bar. Thanks.

@ghost
Copy link
Author

ghost commented Jan 19, 2019 via email

@ernade
Copy link

ernade commented Jan 8, 2020

Carl, I found another way of doing it. No need to keep working on this. Thanks a lot for your help. ~Daniel Le ven. 18 janv. 2019 à 22:47, Carl Vuosalo [email protected] a écrit :

@danielmtzz https://github.com/danielmtzz: I need realistic models for comparison. The bar_SurfaceAssem model has zero mass. Could you please make a model of a bar that has a complete surface (no holes) on the outside but hollow on the inside? Please give it a reasonable mass and specify the material name. Also, it would be good to include a material name for the bar_Assem. If I can compare more realistic models, I can see how SolidWorks represents the hollow bar vs. the solid bar. Thanks. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AhTYTN5sFmHaG4WmIsseCaFdoe7-ptAVks5vEkDYgaJpZM4ZfhiC .

Could you explain us how did u solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants