rpti::item::externalobject

Interact with items of type externalobject.

Supported property names
-name -file -parent
All properties available can be passed via the "create" API or modified on an existing item via the "set" API.

rpti::item::externalobject create

Creates an item of type "externalobject".

Syntax
rpti::item::externalobject create
Parameters
For
Value: A full list of standard property names see Supported property name above.
Returns
The ID of the item or .tcl-error in case an error occurred during creation.
Example
rpti::item::externalobject create -name "My Word Document" -file "example.h3d"

rpti::item::externalobject delete

Deletes the item with the specified ID.

Syntax
rpti::item::externalobject delete
Parameters
-id
Mandatory value: Item ID. The item ID which is returned by the corresponding "create" API.
Returns
1 for OK, .tcl-error in case of error.
Example
rpti::item::externalobject delete -id $id

rpti::item::externalobject get

Queries the value of one property.

Syntax
rpti::item::externalobject get
Parameters
-id
Mandatory value: Item ID. The item ID which is returned by the corresponding "create" API.
For
Value: A full list of standard property names see Supported property name above.
Returns
The value of the specified property or .tcl-error in case of error.
Example
rpti::item::externalobject get -id $id -property parent

rpti::item::externalobject getpropertyid

Queries ID of property.

Syntax
rpti::item::externalobject getpropertyid
Parameters
-id
Value: Item ID.
-key
Value: Property key.

rpti::item::externalobject getpropertykeylist

Queries list of properties.

Syntax
rpti::item::externalobject getpropertykeylist
Parameters
-id
Value: Item ID.
Returns
List of property keys for a particular item ID.

rpti::item::externalobject set

Sets one or multiple parameters to specified values. The type of the item is assigned upon creation and cannot be changed after.

Syntax
rpti::item::externalobject set
Parameters
-id
Mandatory value: Item ID. The item ID which is returned by the corresponding "create" API.
For
Value: A full list of standard property names see Supported property name above.
Returns
1 for OK, .tcl-error in case of error.
Example
rpti::item::externalobject set -id $id -name "My External Object" -file "c:/temp/example.h3d"