I'm new to NX journaling/macros I'm trying to figure out if what I'm trying to do Is supported or if I'm approaching the problem wrong...
I'm trying to implement a functionality of toggling selection filter (solids, faces, curves etc.) as well as scope (Entire Assembly, work part) based on the currently active filter.
For example: if in selection scope "Entire Assembly" hotkey "a" changes scope to "within work part only", and pressing hotkey "a" again would then change scope back to "Entire assembly" once more.
The toggling itself seems to be easily done with a macro - however I'm not sure how to handle the condition.
something like:
if(current_filter == "Entire Assembly"){
toggle_to_WithinWorkPartOnly
}else if(current_filter == "WithinWorkPartOnly"){
toggle_to_Entire Assembly
}
As far as I understand, conditional programming is not supported in macros?
I have not been able to discern if the "Session state" is available in journaling?
Any advice in approaching the problem would be greatly appreciated!
//Oliver
I'm trying to implement a functionality of toggling selection filter (solids, faces, curves etc.) as well as scope (Entire Assembly, work part) based on the currently active filter.
For example: if in selection scope "Entire Assembly" hotkey "a" changes scope to "within work part only", and pressing hotkey "a" again would then change scope back to "Entire assembly" once more.
The toggling itself seems to be easily done with a macro - however I'm not sure how to handle the condition.
something like:
if(current_filter == "Entire Assembly"){
toggle_to_WithinWorkPartOnly
}else if(current_filter == "WithinWorkPartOnly"){
toggle_to_Entire Assembly
}
As far as I understand, conditional programming is not supported in macros?
I have not been able to discern if the "Session state" is available in journaling?
Any advice in approaching the problem would be greatly appreciated!
//Oliver