pulIMacro CopyParameter

Copies the given parameter for the current macro.

Syntax

pulIMacro CopyParameter index

Application

HyperWorks Tcl Modify

Description

This command copies the parameter with the given index.

Inputs

index
The index of the parameter to be copied. Must be a positive integer.

Example

hwi GetSessionHandle sess
sess GetClientManagerHandle pm plot
pm GetMacroHandle macro 1
macro AddParameter “Parameter 1”
macro CopyParameter 1
macro PasteParameter 1

Errors

Returns 3 = HW_InvalidHandle if there is an invalid macro handle.

Returns 4 if index is less than 0 or greater than the number of parameters in the current macro.

Keywords

HyperWorks

Macro

Tcl