Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

GRIP Program to change the application from modelling to drafting and vice versa

Status
Not open for further replies.

Maddy02

Mechanical
Feb 14, 2013
114
Hi,

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

 
Replies continue below

Recommended for you

yes, there is a grip license. It appears to me to be your issue, but I really don't write grip programs. You might be able to get around this by recording a journal.
 
A journal would be the better application to use for this task.
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
 
I just have to ask, why do you think you even need two 'programs' simply to switch between Drafting and Modeling 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.
 
Hi,

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

 
&Dstate is the GRIP command you're looking for.

NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
 
You can do that in one program.
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
 
What version of NX are you running?

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.
 
Hi John,
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

 
In NX 9.0, have you tried toggling ON the 'Application' ribbon 'tab'? From there you can switch to any applications that you wish by selecting a single icon.

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.
 
For NX 8.5, I've attached a video showing how to use customize to create a view 'Shortcut Toolbar' that you can use to switch modules. Note that when you create the shortcut while in Modeling select the Drafting application Icon and while in Drafting select the Modeling application Icon. And once programmed, all you have to do is just place your cursor somewhere in the screen away from any object and press MB1 and then select the Icon. Note that this can be done in NX 9.0 and NX 10.0 as well. But be sure to same your Role afterwards so that this change is saved.

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.
 
 http://files.engineering.com/getfile.aspx?folder=6325051e-d995-420c-93ad-62fa2e1b484b&file=NX_8.5_add_application_to_view_menu.mp4
I have a multi-button mouse and I just set up 2 of the buttons to be the keyboard shortcuts for modeling and drafting.

Steve
NX 8.5.3.3
 
Yes, and if you're using a Spaceball, it has extra buttons that can be programmed.

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

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

 
Maddy02,

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.
Phillpd said:
&Dstate is the GRIP command you're looking for.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor