×
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

Grip with a file browser window

Grip with a file browser window

Grip with a file browser window

(OP)
I'm trying to create a grip program and ideally it want's to have a file browser (similar like the window you get when you create a new part) instead of having to type in the path.
Has anyone come across a way of doing this.

Thanks in advance,

Mark Benson
CAD Support Engineer

Mark Benson
CAD Support Engineer

RE: Grip with a file browser window

No, GRIP doesn't support an interface to the UIstyler.

"Wildfires are dangerous, hard to control, and economically catastrophic."
"Fixed in the next release" should replace "Product First" as the PTC slogan.

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand

RE: Grip with a file browser window

loosib is correct in that GRIP does not support this.

However an out of the box approach would be to XSPAWN (See UG GRIP Docs)
an external program and have that program write the information to a temp file that GRIP could read.  
This can be done in tcl/tk, VB, etc.
I have used it with tcl/tk before I started using Ufunc w/Styler.
Please also note that you can pass ENV variable to your spawned program.  This is one way only!!
I use this to pass the file name I want to create to the spawned program.  
This is useful because GRIP can wait for the file to be created before continuing. (if you use CONCUR)

To retrieve any information you will have to write it to a file and read it with GRIP.
The following is a GRIP program that will execute a tcl program using ugwish.

GRIPSW/DECLRV
STRING/$
          program(132)     ,$ UGWISH
          execute(132)       ,$ program to execute
          basedir(132)     ,$ ENV Variable UGII_BASE_DIR
          z_end $$

$$#######################################################################
basedir = ENVVAR/'UGII_BASE_DIR',ASK
program = basedir + '\MACH\AUXILIARY\ugwish.exe'
execute = 'U:\DV_System\sample.tcl'
XSPAWN/PROG,program,execute

$$#######################################################################
HALT

hope it helps.....

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