ChangeProperty
Changes the properties of an object in the history tree.
| UI Access | Right-click an object in the History Tree and select Properties. | ||||||
| Parameters |
|
||||||
| Return Value | None. |
| Python Syntax | ChangeProperty(<propertyArgs>) |
| Python Example |
Example: Changing the Position of a Box
Example: Offset the Position of a 3D Component or Layout Component with a Variable oDesign.ChangeProperty( ["NAME:AllTabs", ["NAME:LocalVariableTab", ["NAME:PropServers", "LocalVariables" ], ["NAME:NewProps", ["NAME:zH", "PropType:=" , "VariableProp", "UserDef:=" , True, "Value:=" , "50mm" ] ] ] ]) oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.ChangeProperty( ["NAME:AllTabs", ["NAME:General", ["NAME:PropServers", "LC1_1" ], ["NAME:ChangedProps", ["NAME:Position", "X:=" , "0mm", "Y:=" , "0mm", "Z:=" , "zH" ] ] ] ]) Example: Changing a Box's Material and Wireframe Display
Example: Change Default Handle (reference coordinate system) for a 3D Component or Layout Component oEditor.ChangeProperty( ["NAME:AllTabs", ["NAME:General", ["NAME:PropServers","LC1_1"], ["NAME:ChangedProps", ["NAME:Handle","Value:=" , " NotchOutY"] ] ] ])
Example: Change Material Import for a Discovery Model oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Options", ["NAME:PropServers","Discovery1"], ["NAME:ChangedProps", ["NAME:Materials", "Value:=" , "Assignments and Properties" ] ] ] ]) |