Cancel
Showing results for 
Search instead for 
Did you mean: 

Load different NX settings with a journal

Legend
Legend

Hello,

 

We have old parts where some settings in the parts are not correct anymore.

 

These are 4 steps that I would like to bring into a journal, but unfortunately I am not an NX-Open specialist.

 

The 4 steps are:

 

-   Load load_system_palette.pngEditBackground.pngSketch_preferences.pngDraftingPreferences.png"Use System Color Palette"

-   Edit Background to set "Default Graduated Colors"

-   Sketch Preferences "Inherit from Customer Defaults"

-   Drafting Preferences "Load from Customer Defaults"

 

I also made some screenshots to show these 4 steps.

 

Does anyone know if this could be done within a journal?

 

Thanks!!

Regards,

Thomas

5 REPLIES 5

Re: Load different NX settings with a journal

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @TomK76 ,

 

You can record a macro from Menu -> Tools -> Macro -> Start Record coevering above scenarios.

I've read somwhere that it's good practice to record a 1st step of switching to Gateway application and then recording other scenarios in Macro so that user can run it when he/she's in any application.

 

I've attached a macro with above 4 scenarios which runs fine in Modeling/Gateway application.

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!

Re: Load different NX settings with a journal

Legend
Legend

Hi @SamadhanGaikwad 

 

Thanks for the macro!!

 

Would it be possible that the user gets a message when the macro has finished?

Something like an "OK" button?

 

Regards,

Thomas

Re: Load different NX settings with a journal

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @TomK76 ,

 

I don't know about giving message to user about execution of macro.

Below is the video showing how to link macro/journal to a UI button.

 

(view in My Videos)

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!

Re: Load different NX settings with a journal

Legend
Legend

Thanks Samadhan!!

 

Regards,

Thomas

Re: Load different NX settings with a journal

Siemens Phenom Siemens Phenom
Siemens Phenom

@TomK76 , when macro execution is completed, at status bar (at the below), you can see message "Macro plaback terminated". This can give the user a clue that macro has been executed successfully. If at all, there is any issue, macro will throw a error message in pop-up.

 

Edit: In journal, we can add  a code to display a message box if needed.

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!