Here are the results of some TCL commands.
get_props -type assert
{"a", "b", "c", "d"}
Now all these 4 objects have certain attributes associated with them. But I am interested in the "enabled" attribute only.
get_attribute [get_props a] enabled
true
get_attribute [get_props b] enabled
false
get_attribute [get_props c] enabled
true
get_attribute [get_props d] enabled
false
Now I want to convert only "enabled" objects (enabled = true) out of these 4 "assert" type objects into "cover" type objects (So only "a" & "c" should be converted) and for converting "assert" into "cover", the command is fvcover.
I have tried the following command:
fvcover [get_props -type assert]
Now the problem is that, this fvcover command converts all 4 "assert" type objects into "cover" type objects, instead of just "a" & "c".
So I guess, I need to combine both get_props & get_attributes command, but I don't know how to do it.
So how to solve this problem?
Note :- "a", "b", "c", "d" are just for explanation. In reality, get_props command may return any number of results with any name. But out of that list, I need to convert, only those objects, whose "enabled" attribute is true.