Coding Journal UF type commands
Coding Journal UF type commands
(OP)
I have been attempting to use the UF_DISP_set_display command to turn off the display while journals run, but I cannot get it to work.
I have tried calling
SetDisplay(UF_DISP_SUPPRESS_DISPLAY)
I get:
Name 'UF_DISP_SUPPRESS_DISPLAY' is not declared
I have tried
Dim display_code As Integer
display_code=UF_DISP_SUPPRESS_DISPLAY
SetDisplay(display_code)
I get:
Name 'UF_DISP_SUPPRESS_DISPLAY' is not declared
Reference to a non-shared member requires an object reference.
I have tried
SetDisplay(display_code)
I get:
Name 'display_code' is not declared.
I know I am missing something incredibly basic but I'm not sure what it is or where I should look. I have been all over the NXOpen reference documentation trying to figure this out but I am missing something fundamental.
Thanks in advance for your help.
I have tried calling
SetDisplay(UF_DISP_SUPPRESS_DISPLAY)
I get:
Name 'UF_DISP_SUPPRESS_DISPLAY' is not declared
I have tried
Dim display_code As Integer
display_code=UF_DISP_SUPPRESS_DISPLAY
SetDisplay(display_code)
I get:
Name 'UF_DISP_SUPPRESS_DISPLAY' is not declared
Reference to a non-shared member requires an object reference.
I have tried
SetDisplay(display_code)
I get:
Name 'display_code' is not declared.
I know I am missing something incredibly basic but I'm not sure what it is or where I should look. I have been all over the NXOpen reference documentation trying to figure this out but I am missing something fundamental.
Thanks in advance for your help.





RE: Coding Journal UF type commands
CODE
www.nxjournaling.com
RE: Coding Journal UF type commands
Imports NXOpen.UF
Imports NXOpen.UF.UFDisp
with the following code:
Dim display_code As Integer
display_code = UFConstants.UF_DISP_SUPPRESS_DISPLAY
SetDisplay( display_code )
I get the error:
Reference to a non-shared member requires an object reference.
I got the same error when trying to use the UFConstants line directly instead of using display code.
I have checked to make sure our license allows us access to gateway.
Thanks for the help Cowski.
RE: Coding Journal UF type commands
CODE
www.nxjournaling.com
RE: Coding Journal UF type commands
Awesome Cowski as always your advice is excelent.