2013/4/3 Uwe Schlifkowitz <schlifkow...@intales.com>

> Dear pythonOCC users,
>
> i want to convert a Nastran BDF file to STEP file format. This is what i
> did so far:
>
> 1. Read BDF file and store as dictionary
> 2. Find all 3-node and 4-node elements, convert to wires
> 3. Save as STEP file.
>
> This works as expected. Unfortunately, the element IDs from the BDF file
> are missing from the STEP file. The BDF dictionary has the following form:
>
> {'CQUAD4': {'216': [['0', '277', '261', '262', '275', '', '', '']], '217':
> [['0', '67', '278', '279', '66', '', '', '']], '214': [['0', '274', '277',
> '275', '273', '', '', '']], ... }
>
> where '216', '217' and '214' are the element IDs.
>
> My python file (15K): http://pastebin.com/S9Ph1XPz
> Example BDF input (17x17 square elements, 45K):
> http://pastebin.com/k8uYGQg8
> Example STEP output (911K) : https://dl.dropbox.com/u/**
> 32772/pythonOCC/square_test.**stp<https://dl.dropbox.com/u/32772/pythonOCC/square_test.stp>
>
> I apologize if the example and code are not minimal enough, i did not
> manage to compress it further than that.
>
> So my question is, how do I assign an ID? I experimented with TDF_Label,
> but I seem to be missing something.
>
> Best regards,
> Uwe
>
> --
> Uwe Schlifkowitz -- Software Engineer
> INTALES GmbH Engineering Solutions
> Innsbrucker Str. 1
> A-6161 Natters
>
> Phone: +43 512 54611114  --  schlifkow...@intales.com
>

Hi Uwe,

Which STEP Application Protocol do you want to export to? The STEP exporter
builtin pythonocc class exports to AP203 and 214. I think you rather need
the AP209 protocol, which is especially intended for FEA data exchange (
http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=25092
).

STEP AP209 is supported by occt, but the python wrapper is missing from
pythonocc (I remember facing issues), and nobody requested such a feature
so far.

Regards,

Thomas
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to