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.
keithsloan52
Posts: 1009
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Postby keithsloan52 » Mon Aug 19, 2019 4:03 pm

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 260 times
keithsloan52
Posts: 1009
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Postby keithsloan52 » 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
(100.41 KiB) Downloaded 8 times
test.step
(787.83 KiB) Downloaded 7 times
keithsloan52
Posts: 1009
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Postby keithsloan52 » Wed Sep 04, 2019 3:56 am

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
Posts: 2627
Joined: Thu Jul 09, 2015 9:34 am

Re: Output a single STEP file from muliple shapes.

Postby easyw-fc » 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...
keithsloan52
Posts: 1009
Joined: Mon Feb 27, 2012 5:31 pm

Re: Output a single STEP file from muliple shapes.

Postby keithsloan52 » Wed Sep 04, 2019 11:39 am

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