×
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

Unlocked and Locked Unigraphics Configuration Variables in Jounal (VB)

Unlocked and Locked Unigraphics Configuration Variables in Jounal (VB)

Unlocked and Locked Unigraphics Configuration Variables in Jounal (VB)

(OP)
Hello

I,m writing on a little project , but I need to retrieve a
Unlocked Unigraphics Configuration Variables
eks. value of "UGII_CAM_BATCH_DIR"

Does anyone know a "way" to extract theese variables ?


However , I CAN retrieve a system environment variable,
eks value of "windir" or "temp" ,
by using:
>Imports System.Environment<
>env = Environment.GetEnvironmentVariable("temp")<.


lklo
 

RE: Unlocked and Locked Unigraphics Configuration Variables in Jounal (VB)

There are two ufunc wrapper methods for handling variables within NX.  The code snippet shows there use.

Dim s As Session = Session.GetSession()
Dim ufs As UFSession = UFSession.GetUFSession()
Dim newstring As String = "TEST"

ufs.UF.SetVariable("UGII_NEW_VARIABLE", "VALUE")
ufs.UF.TranslateVariable("UGII_NEW_VARIABLE", newstring)

Is this what you are looking for?

Frank Swinkels

RE: Unlocked and Locked Unigraphics Configuration Variables in Jounal (VB)

(OP)
hi frank

thank you

excatly what I need.

but I have forgotten to also set >Imports NXOpen.UF<.
but after I did that ,it work´s 100%.

(I use it to extract the varible(string) of DXFDWG_DIR and UGTO2D_DIR.)

lklo


 

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