GRIP Program to change the application from modelling to drafting and vice versa
GRIP Program to change the application from modelling to drafting and vice versa
(OP)
Hi,
i just wanted to create a Two GRIP programs to achieve
i tried with NX Open Grip but error comes up as below
Is there any license required to create a grip program, if yes what is the license name which i need to check in available licenses list?
if possible can somebody to created two programs to test the same.
i just wanted to create a Two GRIP programs to achieve
1. One program to change the Application from modelling to Drafting and
2. Second program to change the Application from Drafting to Modelling
i tried with NX Open Grip but error comes up as below
CODE -->
Enter file [exit] d:\changeApplication.grs
GRip Advanced Development Environment
-------------------------------------
1) Edit 6) send Output to [CRT]
2) Compile 7) comPile listing [ALL]
3) Link 8) change ediTor [notepad]
4) change Directory 9) grade Batch
5) liSt directory 0) turn Menu on/off
q) QUIT
DIR = C:\Users\xxxxxxx
Enter option: [1] 2
Compile [d:\changeApplication.grs]
Working...
============================================================
Information listing created by : xxxxxx
Date : 5/20/2015 11:10:48 AM
Node name : xxxxxxxxxxxx
============================================================
=====================================================================
***ERROR*** ACS ERROR OCCURRED
NX License Error: License server system does not support this feature. [ -18 ] Is there any license required to create a grip program, if yes what is the license name which i need to check in available licenses list?
if possible can somebody to created two programs to test the same.
Regards,
Maddy





RE: GRIP Program to change the application from modelling to drafting and vice versa
RE: GRIP Program to change the application from modelling to drafting and vice versa
GRIP development is a legacy license and GRIP itself has not been updated since about UG2 V11, released in 1997 or so.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: GRIP Program to change the application from modelling to drafting and vice versa
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: GRIP Program to change the application from modelling to drafting and vice versa
I want to switch from drafting to application modelling in a journal. and later modelling to drafting for user selection.
I don't want to use setDisplay method.
I did tried to record a journal, but no code is recorded for switching applications between modelling and drafting.
So if i have two programs, then i can run first GRIP program to switch to modelling from drafting and
later second one to drafting from modelling once user does the selection.
@looslib
Jounal is of no use i think for this, as there is no support to switch applications till NX9.0.
Whereas in NX10 a new API has been introduced which really switches the applications.
Regards,
Maddy
RE: GRIP Program to change the application from modelling to drafting and vice versa
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
RE: GRIP Program to change the application from modelling to drafting and vice versa
Use the Choose/ statement with Modeling and Drafting as your selection choices.
Do you really save that much time/mouse movement over using the Application selection that is standard in NX?
Since you want to switch from Modeling to drafting or back, are you not using the Master Model approach were the drafting is in a separate file from the part/assembly?
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: GRIP Program to change the application from modelling to drafting and vice versa
Go to DRAFTING if the user is in MODELING or
Go to MODELING if the user is in DRAFTING ?
Jerry J.
Milwaukee Electric Tool
http://www.milwaukeetool.com/
RE: GRIP Program to change the application from modelling to drafting and vice versa
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: GRIP Program to change the application from modelling to drafting and vice versa
I'm using NX 8.5 and 9.0
We use master model approach only.
And I did tried with changing the display part
But user does not want this.
So I'm looking for a solution where I'll switch to modelling while program is running and once user selects the inputs switch back to drafting
Regards,
Maddy
RE: GRIP Program to change the application from modelling to drafting and vice versa
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: GRIP Program to change the application from modelling to drafting and vice versa
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: GRIP Program to change the application from modelling to drafting and vice versa
Steve
NX 8.5.3.3
RE: GRIP Program to change the application from modelling to drafting and vice versa
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: GRIP Program to change the application from modelling to drafting and vice versa
It's not about manual interaction
It's about achieving the switching of application through journal or program while the journal is not yet finished it's execution.
If I create shortcuts, is there anyway to use these shortcuts WHILE A PROGRAM IS RUNNING AND IN BETWEEN THE PROGRAM.
Hope I'm clear,
Regards,
Maddy
RE: GRIP Program to change the application from modelling to drafting and vice versa
During the program execution all of the NX functions are available to the program (provided that the program configures the NX session to meet the requirements of the function). Changing the "application" during the program is not needed. The issue is selection during the program. It is easy to presume that because interactively the application must be changed to switch display modes to all allow for selection, that the program must use the same approach. The program does not. The program needs to perform some of the operations that occur when the application is changed interactively.
Phillpd already posted the solution.
The difference (to the selection during your program) is based on the NX display (model / drawing sheet). The program needs to determine the current display situation and make the change to / from displaying a drawing at the appropriate time during the program. Use change layout or replace view in layout if needed.
Example Grip Program ()
(The NX 10 function just sets the current application at the end of the execution of the program.)
Hope this helps,
Joe