In assembly mode I have added a Jlink app to select then you right click on a part.
Can I send the part name to this Jlink, so I can let Jlink work with this part?
Solved! Go to Solution.
When you have something selected it is in SelectionBuffer so you can retrieve anything you like from it. If you have selected component you can directly access whole model not just file name.
Hi,
please ask PTC Support.
When you have something selected it is in SelectionBuffer so you can retrieve anything you like from it. If you have selected component you can directly access whole model not just file name.
Thank you, it seems to by a step forward.
I can get the buffer, but a can't the part info, I have tried this:
Session session = pfcGlobal.GetProESession();
SelectionBuffer selection = session.GetCurrentSelectionBuffer();
Selections selections = selection.GetContents();
But I can't anything out of selections. The only thing I need is the file name.
Allan
You can have multiple items (seledted models) at same time .. to get first model in selection you do this
session.GetCurrentSelectionBuffer().GetContents().get(0).GetSelModel();
Or you can loop through all models in buffer