Create Component by Signal

I’d like to create a component feeder, which is triggered by a bool signal. Unfortunately, the vcComponentCreator works with a defined time interval that is not event/signal based.

If you set Limit to 0 then you can control when parts are created using a Python Script. The Shape Feeder in the eCatalog is an example. It has a CreateOnSignal property, which when enabled will create a part when it receives a signal.

Thanks, this worked out!

Which function/ Code i am supposed to use to enable the ComponentCreator in the Python Script?

Hello,

This thread is pretty old (6 years) but I can try to answer anyway.

First let’s create a new component and give it some behaviours and link them properly, for example component creator with container and then link creator’s output to the container.


Then python script and a signal connected to the python script.

image

We are then setting the limit to 0 (as per instructed by the help file) to disable internal logic. Then with signal toggle we are setting the limit to 1 to allow the creator to run.

br
lefa