Hello, I'm resuming a discussion about a problem already mentioned in this one below, but remained unanswered in my last post:
As this post is old, and marked as resolved, it does not attract attention.
The problem is to fix all the components, only in the active configuration.
It seems according to codestack that the API has a gap on this point, and it offers an alternative to invoke the command via windows directly.
For the general idea, it is treated HERE
For the particular application to the case that interests me, here is AN EXAMPLE
I guess
" Sub Main " may or may not perform the " fixcomponent " action on the series of components designated literally (part1-1 to part1-4), depending on whether the action is set to True or false
" Sub fixcomponent " details the procedure that is called in " Sub main " for each component.
First of all, am I wrong?
If not, I'd like to be able to replace the literal list of components with a loop that calls each top-level component in my assembly.
Does anyone know how to write this?
Thank you in advance.
PS: my goal is to create simplified configs of my assemblies. The best of the best would be, from the head assembly, to create a " Simplified " configuration for each sub-assembly, to remove the components that are not very important (typically the screws, the sorting can be done on the basis of the volume, with a threshold to be defined in mm3), and to fix the components. And to make an update if the config already exists, to release the components in this config, then re-fix them.
Thank you in advance