Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Auto create parts from excel-file

Status
Not open for further replies.

Molgan

Mechanical
Oct 15, 2002
25
Hi,

I want to have a macro/API to do the following:
1. Create a new part.
2. Read 3d-coordinates from the first line in a file (ie excel)
3. Sketch lines between the coordinates
4. Make an extrusion from the sketched lines.
5. Save the part as part1.sldprt
6. Create a new part.
7. Read 3d-coordinates from the second line...
...extrude
...save the file as part2.sldprt
3rd line
part3.sldprt
and so on...

Is this even possible?

Thanks,
Magnus
 
Replies continue below

Recommended for you

fantastic!
Can you tell me how? Please....
 
rstupplebeen:
Thanks for the macro. But i'm looking at somewhere around 2000 configs...
 
It would be a very ambitious first macro. If you've never written macros before (which it sounds like you haven't), it would take you longer to learn enough to write this macro than to create your 2000 parts manually. Maybe someone will have time to work for you for free, but it's not me today.

-handleman, CSWP (The new, easy test)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor