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
Name Type Description

<propertyArgs>

Array

Structured array. The properties vary depending on the object. Due to the number of potential configurations, it is recommended that you generate this script using the UI's Automation tab.

Return Value None.

 

Python Syntax ChangeProperty(<propertyArgs>)
Python Example

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: 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)

oEditor.ChangeProperty(

[

"NAME:AllTabs",

[

"NAME:General",

[

"NAME:PropServers",

"HFSSDesign1_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"

]

]

]

])

 

VB Syntax ChangeProperty <propertyArgs>
VB Example

Example: Changing the Position of a Box

oEditor.ChangeProperty Array("NAME:AllTabs", Array("NAME:Geometry3DCmdTab", Array("NAME:PropServers" , "Box1:CreateBox:1" ), Array("NAME:ChangedProps", Array("NAME:Position", "X:=" , "0.35in", "Y:=" , "0.55in", "Z:=" , "0in" ) ) ) )

Example: Changing a Box's Material and Wireframe Display

oEditor.ChangeProperty( Array("NAME:AllTabs", Array("NAME:Geometry3DAttributeTab", Array("NAME:PropServers", "Box1" ), Array("NAME:ChangedProps", Array("NAME:Material", "Value:=", "\"vacuum\"" ), Array("NAME:Display Wireframe", "Value:=", True ) ) ) )

Example: Change Default Handle (reference coordinate system)

oEditor.ChangeProperty

Array("NAME:AllTabs",

Array("NAME:General",

Array("NAME:PropServers",

"HFSSDesign1_1"

),

Array("NAME:ChangedProps",

Array("NAME:Handle",

"Value:=" , " NotchOutY"

)

)

)