SetPropertyValue

Sets the value of a single propertybelonging to a specific PropServer and PropTab. This function is available with the Project, Design or Editor objects, including definition editors.This is not supported for properties of the following types: ButtonProp, PointProp, V3DPointProp, and VPointProp. Only the ChangeProperty command can be used to modify these properties.

Use the script recording feature and edit a property, and then view the resulting script entry or use GetPropertyValue for the desired property to see the expected format.

UI Access N/A
Parameters
Name Type Description

<propTab>

String

One of the following, where tab titles are shown in parentheses:

  • PassedParameterTab ("Parameter Values")
  • DefinitionParameterTab (Parameter Defaults")
  • LocalVariableTab ("Variables" or "Local Variables")
  • ProjectVariableTab ("Project variables")
  • ConstantsTab ("Constants")
  • BaseElementTab ("Symbol" or "Footprint")
  • ComponentTab ("General")
  • Component("Component")
  • CustomTab ("Intrinsic Variables")
  • Quantities ("Quantities")
  • Signals ("Signals")
<propServer> String An object identifier, generally returned from another script method, such as Comp­Inst@R;2;3
<propName> String Name of the property.
<propValue> String The value for the property
Return Value None.

 

Python Syntax SetPropertyValue(<propTab>, <propServer>, <propName>, <propValue>)
Python Example

oEditor.SetPropertyValue("PassedParameterTab", "k", "R", "2200")