Property Script Commands

Property script commands allow you to navigate through all objects and properties in a project. You can get and set all properties for all objects in the Project tree with simple data types.

Property Object is the base class defined for all script objects that support the properties Get and Set.

GetName()

GetChildTypes()

GetChildNames(<type>)

GetChildObject(<objPath>)

GetPropNames(<bIncludeReadOnly>)

GetPropValue(<propertyPath>)

SetPropValue(<propertyPath>, <data>)

For a detailed summary of how Property script commands are used in a range of contexts, including Variable objects, see: Object Script Property Function Summary. Additional examples for these commands are listed under Project Objects, Design Objects, 3D Modeler, Optimetrics, Radiation Module and Reporter.

Note:

Older property commands should be executed by the oProject object.

Set oProject = oDesktop.SetActiveProject("Project1")

oProject.CommandName <args>

Some of the topics covered in this chapter are as follows:

Object Script Property Function Summary

Conventions Used in this Chapter

ChangeProperty

GetArrayVariables

GetProperties

GetPropertyValue

GetVariables

GetVariableValue

SetPropertyValue

SetVariableValue

Example Use of Record Script and Edit Properties

Additional Property Scripting Example