×
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

Pro/Program: Specify 'from file' Location

Pro/Program: Specify 'from file' Location

Pro/Program: Specify 'from file' Location

(OP)
Hi all,

When Using pro/program to drive dimensions from an external file, i.e. a .txt file that lists the parameters and values, when you regen the model, it asks you what values to use for the parameters and you tell it where to find the .txt file...

Is there a way to put this file location into pro/program so when you regen it just automatically reads the .txt file instead of prompting you everytime for the location?

Cheers in advance!

Jon Reynolds

RE: Pro/Program: Specify 'from file' Location

(OP)
Or as another approach, is it possible to invoke some sort of pop up window on regen, where all variable inputs are shown with their values and can be edited if desired or just hit ok?

Very similar to a UDF I created... I can't remember the details now, but when inserting the UDF into a new model, one of the features half way through pops up a window containing variable parameters, where you can edit the values before proceeding. Something like that every time you hit regen would be ideal.

Thanks again.

Jon

RE: Pro/Program: Specify 'from file' Location

Hey there, Pro/Program only reads the file from the working directory, what I did is that I made a mapkey where I wrote every time the name of the file, so when I run this mapkey it'll tell pro/program to read that same file for every part. It works for me because I manage to create the txt file through excel, so it contains all parameters values for the whole assembly.

You can also prompt the value for a single parameter only, in the drop down list options when you click the regen buttom, search for the third option, that'll do.

RE: Pro/Program: Specify 'from file' Location

(OP)
Hiya,

Thanks for the reply... Have tried that route before with success but the only reason I am looking for a way of incorporating it into the program is so that it can be taken to any system and will work just on a basic regen. If it is a mapkey, then it is only going to work in the system that has the mapkey installed.

Cheers anyway!

Jon

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