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