Output a single STEP file from muliple shapes.

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Post by keithsloan52 »

Thanks, I will investigate, now I have a pointer as to where the error is.

The errors on my system are not as clear as yours :-( Well not at the scale they show on my screen.
Screenshot from 2019-08-19 16-59-37.png
Screenshot from 2019-08-19 16-59-37.png (57.57 KiB) Viewed 546 times
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Post by keithsloan52 »

Okay I think I have resolved the previous error puting logical volumes into separate containers,
but when I import the exported step file the structure is still a bit different.

@easyw-fc
test.FCStd
(100.41 KiB) Downloaded 20 times
test.step
(787.83 KiB) Downloaded 19 times
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Post by keithsloan52 »

keithsloan52 wrote: Sat Aug 31, 2019 7:14 pm Okay I think I have resolved the previous error puting logical volumes into separate containers,
but when I import the exported step file the structure is still a bit different.

@easyw-fc

test.FCStd
test.step
Actually the problem still exists when using on Linux but did not occur when running the same code on the Mac.

Linux Versions where the problem occurred

OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.
Locale: English/UnitedKingdom (en_GB)

MacOS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.3)
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
Last edited by keithsloan52 on Wed Sep 04, 2019 11:23 am, edited 1 time in total.
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: Output a single STEP file from muliple shapes.

Post by easyw-fc »

It shouldn't change between Mac and Linux...
It could depend on FC STEP import/export settings on your pcs...
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Post by keithsloan52 »

easyw-fc wrote: Wed Sep 04, 2019 11:19 am It shouldn't change between Mac and Linux...
It could depend on FC STEP import/export settings on your pcs...
Don't think so the errors as you pointed out previously in this thread happen when importing the GDML file and
mean the export of STEP fails. Where as on the Mac there are no errors and it allows me to export the STEP file.
Was suspecting that this might be explained by different levels of OCC but they are the same

I was also concerned that when I re-import the exported STEP it does not look 100% the same structure as in FC.
I will check the import/export settings on the Mac
Post Reply