Hi,
I am looking for an automatic way to count how many times one specific symbol is added to a drawing, and store the number in a parameter.
Any suggestions?
/Martin
I tried Find for a Symbol, Name = ... and it put up a count, but getting that to a parameter would require an external tool like AutoIT or an internal one like Tookit.
Find also wasn't too informative on what it found, so it depends on what you mean by 'specific.'
David,
Using Find and specify the name of the symbol, give a list where you can count the number of times the symbol is present. It is this count I would like to have stored.
You could assign the selected symbols to a new layer, then in layer properties window check the info of the layer, switch to edit mode to copy the contents or just store the info window contents as a text file. After all that you could go to relations window to make or rewrite the parameter with the value from said text file.
I think the whole process can be automated, but it might take a while to make a macro of this size.
I was thinking along the same lines as Jakub. You can save the query so it automatically places the symbols with that name on a drawing layer and updates automatically but I don't know how you can grab the layer info automatically without some kind of custom toolkit or something.