Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @brenton_tait,

I am requesting @chanatwr to move this to 'NX Programming & Customization Forum' as it will get better reponse there.

Regards,
Ganesh
#IngenuityIsNX | NX - What's New

9 REPLIES

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator

Thank you @GaneshKadole

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator

Knowledge Fusion is always exectuting during an NX update. You can't rotate a component with KF because it would rotate the component every time there is an update. What you can do is position the component as desired using the ug_component class X_axis and Y_axis parameters set to set the component orientation.

Ric Hotchkiss - Principal Methodology Engineer
Design Automation Associates Inc 860-749-3832
rhotchkiss@daasolutions.com

Engineering Software & Services - NX/UG/Unigraphics:
Design Automation: Knowledge Fusion & UG/Open
Check-Mate Validation: Authoring & Customizing
Advanced Parametric Design & Modeling

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator

Thank you for the response @RicHotchkiss! I am coming to the realization that KF is not going to be capable of doing everything I need for this project. I think our designers will just have to settle for "good enough" this time.

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator
You can rotate components using NX/Open
Ric Hotchkiss - Principal Methodology Engineer
Design Automation Associates Inc 860-749-3832
rhotchkiss@daasolutions.com

Engineering Software & Services - NX/UG/Unigraphics:
Design Automation: Knowledge Fusion & UG/Open
Check-Mate Validation: Authoring & Customizing
Advanced Parametric Design & Modeling

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator

I would need them to be rotated via Edit Tooling Component in Mold Wizard. So the NX/Open program would have to be triggered by an expression's value. and I don't believe that is possible. 

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator
It might be possible in a roundabout way: You can create Knowledge Fusion functions that can be called in from expressions (Design Logic). The KF functions can call NX/Open functions using nx_ja_session_execute.
Ric Hotchkiss - Principal Methodology Engineer
Design Automation Associates Inc 860-749-3832
rhotchkiss@daasolutions.com

Engineering Software & Services - NX/UG/Unigraphics:
Design Automation: Knowledge Fusion & UG/Open
Check-Mate Validation: Authoring & Customizing
Advanced Parametric Design & Modeling

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator

Thank you, that's good to know. However, I think that is excessively complex for the task I'm trying to do. Do you have any example parts that contain the KF function that calls an NX open program? Or perhaps a link to more information on this method? It may be very useful to me on other projects down the road. 

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator
The NX documentation is a bit light for the nx_ja_session_execute function. I have added my comments after the # sign for each input parameter

Defun: nx_ja_session_execute(
String, $lib_name, # The dll, jar or python file name
String, $class_name, # the name of the module or class where the method / function is defined
String, $method_name, # the name of the method or function to call
List, $input_args ) # list of any arguments to the NX/Open function (empty list if no arguments).
@{...} Any; # the return value is whatever you return from NX/Open

Ric Hotchkiss - Principal Methodology Engineer
Design Automation Associates Inc 860-749-3832
rhotchkiss@daasolutions.com

Engineering Software & Services - NX/UG/Unigraphics:
Design Automation: Knowledge Fusion & UG/Open
Check-Mate Validation: Authoring & Customizing
Advanced Parametric Design & Modeling

Re: How do you rotate a Component around the Z Axis using Knowledge Fusion

Creator
Creator

Thank you for explaining each line with the comments! My colleague is much better when it comes to  NX Open programming and Knowledge Fusion. I'll have to show him this. 

 

It's a shame that the Edit Child Rule command doesn't support simple rotations... I figured that it should, considering that the origin can be manipulated.