hwIPage AddLayer
Adds a reference to an existing layer to the page.
Syntax
hwIPage_handle AddLayer layer_id
Application
HyperWorks Tcl Query
Inputs
- layer_id
- The ID of the layer to be referenced by this page.
Example
To add a reference to a newly-created layer to the first page:
hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page1 1
page1 AddLayer [proj AddLayer]
Error
- 3 = HW_InvalidHandle
- The handle used to invoke the method is no longer valid.
- 1 = HW_Error
- The specified layer_id is invalid.