Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

I want to be able to create a assembly from a text file. 1

Status
Not open for further replies.

datajockey

Mechanical
Oct 25, 2006
3
I have a folder called “Translations” containing multiple *.stp files. I need to create an assembly file with certain step files from the “Translations” Folder. I receive an text file with the file names that are suppose to make up this assembly.

Is there anyway that I can automate this process using my text file, by using a mapkey or a batch script file. Please help!!!!!!
 
Replies continue below

Recommended for you

Given the amount of infomation you've provided, probably not.

Does your text file provide info as to how these parts will go together? Are they all created relative to a common coordinate system or do they each have their own?
 
Yes they were created to a relative point. I'm tired of going to add component 50 times. i was thinking that there is some way of having proe read the text file through a mapkey.

I'm open to any suggestions
 
Using either Pro/TOOLKIT or J-Link, you can either package the components or fully constrain the components. Either language can read the text file. I suspect that depending how the component parts step files were created, you could assemble to a coordinate system.
 
You probably could do it with a mapkey. Create the mapkey for one single part.

When you make it, save it to a *.pro file and open it up in notepad.

Then, using whatever programming language you use, write up a little program and have it spit out the same text as the mapkey file you created, switching up the filename with a variable read in from a file.

If it's only 50 parts, you should just make the mapkey, and repeat 50 times. It's probably not worth all the effort to write a program, unless this is something you'll have to do a lot of in the future.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor