Submitted by ian.eldred on Thu, 11/26/2015 - 05:17
Forums:
In an assembly, is there a way to identify which component has been selected in the model tree?
I have some non-geometry components added via Teamcenter and I need to allow the user to select the non-geometry component from the model tree, then click on a button to run a journal on it.
Thanks,
Ian
re: preselected objects
In the link below is a journal taken from the GTAC solution center (written by Amy Webster) that shows how to get the tag of objects that were selected before the journal was started (pre-selected objects).
http://www.nxjournaling.com/comment/553#comment-553
Rather than just reporting the type and subtype, once you have the tag of an object, you can get a reference to the object using the NXObjectManager.Get method.
http://www.nxjournaling.com/comment/1085#comment-1085