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.
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