I have created a template in Pro and want to get original cim Definition so that I can automate setDefinition changes.
lyt.getDefinition('V2')
returns "RuntimeError: Point: Input value is not numeric".
Solved! Go to Solution.
After 15min of cascading deletion of element groups/elements and getDefinition() after every delete, I found a Group element (CIMGroupElement) that didn't have a rotationCenter x,y set where it was expecting a numeric value it was set to NaN. I have experienced some Pro bugs with heavy element group within groups and imagine this is something similar.
{
"type" : "CIMGroupElement",
"anchor" : "BottomLeftCorner",
"name" : "Population Density",
"visible" : true,
"rotationCenter" : {
"x" : "NaN",
"y" : "NaN"
}
After 15min of cascading deletion of element groups/elements and getDefinition() after every delete, I found a Group element (CIMGroupElement) that didn't have a rotationCenter x,y set where it was expecting a numeric value it was set to NaN. I have experienced some Pro bugs with heavy element group within groups and imagine this is something similar.
{
"type" : "CIMGroupElement",
"anchor" : "BottomLeftCorner",
"name" : "Population Density",
"visible" : true,
"rotationCenter" : {
"x" : "NaN",
"y" : "NaN"
}