Open dmtr99 opened 3 years ago
We do have the feature.list_selected function, though that would list any selected feature, not just components. Have you tried that?
Sorry for the late reply.
Hello,
Example assembly with three parts (*.prt). Each part corresponds to its own component.
Somehow the "feature:list_selected" function doesn't do what I would expect. For example, it should recognize the component that the user has selected in the tree. The "feature:list_selected" function expects the component (e.g. "C11(name)"). But internally selected is the file (e.g. "name.prt"). You can see this in the search dialog when searching for components. Selected item there is the file. If you remove the selected file and take the component instead, the "feature:list_selected" function finds it.
I think if a file is selected with its own component in it, the "feature:list_selected" function should also list the component.
How can the function find the component selected by the user?
(Creo 6.0.6.0 is used)
I hope you can help me. Thanks very much.
Can you attach a sample model here for us to play with?
Please use this example assembly: ehs.zip
Is it possible to get the current selected components of the active assembly?
Maybe it is possible to add a return parameter to bom : get_paths if the component was selected?