Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a part with python script

Status
Not open for further replies.

lumonda14

Civil/Environmental
Jul 6, 2011
2
Hi,
I'm trying to build a part representing a stone vault's ashlars from a list of the vertices'coordinates using a python script. I managed to import the coordinates of the points but I can not build a solid, since I can not build a two-dimensional sketch. Can I use the attributes of the part, that is to say vertices, edges,..? Can vertices be a list of coordinates?
Thanks in advance for answers.
 
Replies continue below

Recommended for you

Why not write a script to build the FEA deck directly from the coordinates rather than building a part and then meshing it?

Leastways that's how it used to be done.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Thanks a lot for your reply!
Sorry but I don't really understand how to realize the FEA deck.
Do you mean that I need to write a .inp file starting from my coordinates?
Because I have only the coordinates of the vertex and not the mesh node's ones.
Thanks,
Lucia
 
Yes, you can create vertices using a set of co-ordinates. For your application however I suggest drawing each face of your part as an individual shell part. Use you co-ordinate data you have to create datum points, project them onto the shell sketch and connect them to get your face geometry. Assemble the resulting shell parts and merge them. Convert the resulting shell to a solid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor