python: converting DXF to INP with layernames

Post here if you have a FreeCAD-related job to offer to the FreeCAD community. This can include programming or modeling.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
diredjo
Posts: 2
Joined: Fri Aug 24, 2018 8:16 pm

python: converting DXF to INP with layernames

Post by diredjo »

i'm looking for someone who can help me to convert DXF line with layer names to INP readable format. this is for my internal use or it may publicy, please keep it simple so there's no libs dependencies.

an example are draw many lines, point and face with layer names,
L1 (C1x,C1y,C1z) (C2x,C2y,C2z) layer name: Rect42
L2 (C3x,C3y,C3z) (C4x,C4y,C4z) layer name: Circ3
P1 (C5x,C5y,C5z) layer name:Fix123

*Node
1 x,y,z
...
5 x,y,z
*Element, Type:B31R, Elset=Rect42
1 1,2
*Element, Type:B31R, Elset=Circ3
2 3,4
*Nset, Nset=Fix
P1
*Boundary
Fix 1,3
*Beam Section,Material=..,Elset=Rect40,Section=Rect
4.,2.
...
etc

previously i'm able to parse each object, cooordinates and layernames, but getting dizzy :roll: in collecting and indexing. another reason i busy studying mechanical simulation.

hope you're interested and make further discussion by e-mail about scopes and charge if applicable

thank you,
anna
Posts: 19
Joined: Thu Jan 04, 2018 1:17 pm

Re: python: converting DXF to INP with layernames

Post by anna »

Hi,
Greetings!!
I would be glad to assist you.
Sent you PM.
Looking forward for your kind attention.
Best Regards,
Anna J
diredjo
Posts: 2
Joined: Fri Aug 24, 2018 8:16 pm

Re: python: converting DXF to INP with layernames

Post by diredjo »

thank you for your attention,
if you're interested and capable to tackle these subject, please show me in video links for a simple example works.
Post Reply