check wheather plane shape is locked or not if locked it will never alloy you to modify
I checked: unfortunately, neither of the Plane Shapes in my PCB are locked.
Can anybody run my simple script and report his results?
Could you provide me with a test design - I'll be happy to give it a try here..
I'd like the full script as well ;-)
I have zipped the test project: PCB side only, since schematic side is not necessary. My script (OverridedPS.vbs) is next to PCB file.
Two Plane Shapes are on the 1 layer, two Plane Shapes are on the 2 layer. Three of them are overrided.
When running the script "as is", you will get the list of overrided Plane Shapes (i). That is OK.
Now please uncomment line 29 of the script (here I try to re-assign the same Plane Class in order to reset Overrided status) and run the script again.
The script will fail with an error message "Object doesn't support this property or method: shapeObj.PlaneClass".
PCB.7z.zip 43.0 KB
1 of 1 people found this helpful
You just need a "Set" statement when you are setting the property with an object:
Set shapeObj.PlaneClass = classObj
That probably would have been my first test too - Oleg, do you want to verify and let us know if that made the trick ?
John in his previous message gave absolutely right answer - to insert "Set" statement. I have successfully verified my project, everything is OK. Then I have marked his answer as "Right answer".