SimplifiedLogic / creoson

OpenSource Automation using JSON Transactions for PTC's CREO Parametric
http://www.creoson.com
MIT License
83 stars 23 forks source link

List selected parts in assembly? #98

Closed stekicar closed 1 year ago

stekicar commented 1 year ago

Is it possible to get a list of selected components (parts & assemblies) in assembly?

thackb commented 1 year ago

Yes, Look at the bom:get_paths function http://www.creoson.com/functions.html

stekicar commented 1 year ago

I am looking for list of SELECTED components in assembly, not a list of all components in assembly.

DieSwartKat commented 1 year ago

If you asking to get the components you have selected by clicking using a mouse, the answer is NO, not possible.

If you asking to get a subset of the existing components. I recommend you add a parameter to each of those you want and then use creoson to get a list of parts and their parameters and then filter the full list by the items with the parameter.

Hope that helps.

stekicar commented 1 year ago

We can get list of selected dims and features but not components. It would have been nice, though ... I can select each component's feature and get components but that will not work if I select sub-assemblies.