Parameter Controlled Component Supression

Parameter Controlled Component Supression

thuttonUDN5B
Observer Observer
278 Views
1 Reply
Message 1 of 2

Parameter Controlled Component Supression

thuttonUDN5B
Observer
Observer

Is there a way to control the suppression of individual components with parameters. Something like "1" for suppressed, "0" for unsuppressed, True or False, etc. 

 

I am building a seed part, or a parameter master part. I want to have different versions of a component in the same part file ready for easy swap outs. 

0 Likes
279 Views
1 Reply
Reply (1)
Message 2 of 2

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

 

I think there is not such as functionality you need at the moment.

I can find two alternatives to this:

 

1.  Make a command where you ask the user for set the setting and to make the operation to the model (suppress/unsuppress in this case).  This will replace the user parameter dialog.  You need an add-in for it, keeping the status internally.

 

2. In this answer https://forums.autodesk.com/t5/fusion-api-and-scripts/does-fusion-plan-on-having-operation-change-ev... Mr @kandennti provides an alternative using command-start / command-termite events to track when the change is made; in this case you might need to look for the parameters command to be executed, then check if the user parameter was update and to update the model (suppress/unsuppress) accordingly.  Take into account that if the user parameter is changed by other command or by a script, you won't get the event to track its change.

 

I hope this can help you a little bit.

 

Regards,

Jorge Jaramillo