Ctrete Signal and Property by .csv

I want to create some plugins that create signals or component properties for selected components through csv files. This can speed up the production of some components.
At the moment, I have some challenges on my side. I need some help. Thank you!
ctrete Signal by list.zip (1.9 KB)
ctrete Property by list.zip (2.0 KB)
ctrete Property by list.csv (177 Bytes)
ctrete Signal by list.csv (102 Bytes)

Hi! Friend. I updated it once, V1.1, but I still donā€™t seem to have success. Didnā€™t create the signals and properties I wanted. How should I modify it?
ctrete Property by list v1.1.zip (2.0 KB)
ctrete Signal by list v1.1.zip (1.9 KB)

Friends. Do you have a better way?

Iā€™ve looked at your program and itā€™s a bit confusing, you say you are trying to add properties and signals (forgive me for only looking at your add property code right now) but I see that in your code about adding properties you are using findBehaviour and createBehaviour which are behaviors and not properties, what you should be using is getProperty and createProperty, thatā€™s one thing, also, I see that you didnā€™t call the generator function addProperty either, which would lead to nothing happening, the code stops at the end of ImportFromCSV() doesnā€™t it, and then, you said that you want to generate it in the selected component, then the comp that youā€™re getting should be of the type vcComponent instead of vcContext, you can use vcHelpers.Selection module to get the currently selected component, thatā€™s all Iā€™ve read so far, you can modify it first. :melting_face:

Thank you very much! I copied the code from ImportSignalbyList.py, maybe I forgot to change it. Youā€™re absolutely right. I did get stuck on the selected component. I ended up not knowing how to connect any of the components I chose to create signals and properties. Iā€™ll look at your hints.

ctrete Signal by list v1.2.zip (1.9 KB)
ctrete Property by list v1.2.zip (2.0 KB)
I made some adjustments, but it still seems to lack a bit of syntax to implement.

emmm, I didnā€™t understand what you wrote, Iā€™ll give you my revised version for your reference and use.
ImportPropertybyList.py (5.9 KB)

Thank you. With your help, I have completed both.

Hi!
I shared one of them. I think I failed last time.
How to useļ¼Ÿ
ļ¼ˆ1ļ¼‰Add on
ļ¼ˆ2ļ¼‰Open the software and select your components.
ļ¼ˆ3ļ¼‰Modeling. Click Plugins and select. csv. 怐 Example: ctrete Property by list.csv怑
ļ¼ˆ4ļ¼‰Click ā€œImportā€. Yes, you are done with it.
ctrete Property by list v1.3.zip (2.2 KB)

Here we thank bad again.Thank you. BAD

1 Like