|
Example: Changing the Position of a Box
oEditor.ChangeProperty(
[
"NAME:AllTabs",
[
"NAME:Geometry3DCmdTab",
[
"NAME:PropServers" ,
"Box1:CreateBox:1"
],
[
"NAME:ChangedProps",
[
"NAME:Position",
"X:=" , "0.35in",
"Y:=" , "0.55in",
"Z:=" , "0in"
]
]
]
])
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
oEditor.ChangeProperty(
[
"NAME:AllTabs",
[
"NAME:Geometry3DAttributeTab",
[
"NAME:PropServers" ,
"Box1"
],
[
"NAME:ChangedProps",
[
"NAME:Material",
"Value:=" , "\"vacuum\""
],
[
"NAME:Display Wireframe",
"Value:=" , True
]
]
]
])
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" ] ] ] ])
oEditor.ChangeProperty(
[
"NAME:AllTabs",
[
"NAME:Component Data",
[
"NAME:PropServers",
"BoundarySetup:LC1_1_Port1"
],
[
"NAME:ChangedProps",
[
"NAME:Voltage",
"Value:=" , "10mV" ]
]
]
])
...
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" ] ] ] ])
|