Hello Uwe,

I have no answer for you at this moment, but just out of curiosity, why do
you want to
convert from BDF to STEP?

Marco

P.S. Note that there is a specific STEP standard (AP 209) for data exchange
between
       CAD and FEA. I don't know if this is supported by OCC at all though



On Wed, Apr 3, 2013 at 11:45 AM, Uwe Schlifkowitz
<schlifkow...@intales.com>wrote:

> 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
>
> ______________________________**_________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/**pythonocc-users<https://mail.gna.org/listinfo/pythonocc-users>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to