×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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!!!!!!

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

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?

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

(OP)
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

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

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.

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

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources