×
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

Updating from external spreadsheet CMD LINE MACRO, VB or GRIP

Updating from external spreadsheet CMD LINE MACRO, VB or GRIP

Updating from external spreadsheet CMD LINE MACRO, VB or GRIP

(OP)
Although I would prefer MACRO commands I am open to use Visual Basic, or GRIP or another way.
I am completely new to GRIP so I would need to learn the syntax though.

Currently from the CMD Line this is run
ugraf.exe -key=t:\m1.macro
This macro Opens NX sets windows sizes & toolbars & closes NX (so macros will work correctly).
Ugraf.exe –key=t:\m2.macro
This macro opens part.prt, updates expressions from an external spreadsheet, saves the part.prt & closes NX. I run this multiple times.

The bottom line is it takes longer than necessary to open & close NX if I run m2.macro multiple times. Can it be updated without closing and reopening NX?

I imagine this running (or something comparable to it)
m1.macro or VB Code (This macro runs, Opens NX updates windows size & updates parts & stops & leave NX OPEN)
Then Later I will need to run (multiple times)
m2.macro or VB Code (This macro runs, updates the expressions from an external spreadsheet & leaves NX OPEN)

If I try to call a macro with NX open from the CMD Line NX does not like it to say the least.

Alanhiggy
 

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