Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unlocked and Locked Unigraphics Configuration Variables in Jounal (VB) 1

Status
Not open for further replies.

lklo

Industrial
Nov 24, 2010
226
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
 
Replies continue below

Recommended for you

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
 
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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor