API: Fix a component "only in this configuration"

Hello

 

Here I am simply trying to fix a component only in the configuration where it appears, and not in the parent configurations as is the case with the code I use:

 

swAssy.FixComponent

FYI, I select the component by name.

 

Thanks in advance!

Hello

 

For my part, when I work, I use $FIXE@PieceName<1> in the Excel spreadsheet. By answering Yes or No, it fixes my piece. Even for derived configurations, there is no problem.

But is that your problem? I may not have identified the problem ...

 

Have a nice day.

3 Likes

Thank you

 

I work in VB directly with the "basic" visual basic".

The problem lies in the fact that by using the "FixComponent" function in a derived config, the component was fixed in the selected configuration, fine, but also in the other configs and there it was annoying.

I reviewed my macro and I got around the problem, the assemblies submitted to this macro go into calculation afterwards, so finally I can fix everything, so the asm is not overstressed.

But I'm not against a trick so that fixcomponent only applies to the active configuration of my assembly.

 

Have a nice day

1 Like

Hello
I have the same problem: no way to fix only in the active config.
I came across this workaround but I can't understand it:

My goal is to fix all the first level components of my assembly.
Currently I use this code also found on CodeStack:

If someone could help me...
Thank you

1 Like