API-Dokumentation > Miscellaneous > Object ProLayerstate > Function ProLayerstateCreate
Function ProLayerstateCreate
Description
Create Layer state from references. Note: ProLayerItem of type PRO_LAYER_LAYER cannot be added to Layer States using ProLayerstateCreate.
Replacement in Object TOOLKIT:
Synopsis
#include <ProLayerstate.h>
ProLayerstateCreate
(
ProSolid p_solid
/* (In)
Solid.
*/
ProName state_name
/* (In)
New layer state name. The name may consist of alphanumeric, underscore and hyphen characters only.
*/
ProLayer* layers
/* (In)
ProArray of layers referenced by the new state.
*/
ProLayerDisplay* disp_arr
/* (In)
ProArray of layer display statuses. Must be equal in size to the layers array.
*/
ProLayerItem* hidden_items
/* (In)
ProArray of hidden items.
*/
ProAnnotation* annotations
/* (In)
ProArray of annotations on a layer.
*/
int* status_flags
/* (In)
ProArray of integers. Statuses of the annotations in the layer state. The statuses are true/false values. true = excluded from layer. Array size must be equal to annotations' size.
*/
ProLayerstate* p_state
/* (Out)
Returned newly created layer state.
*/
)
Returns
Layer state created successfully.
Model is in read-only state.
Incorrect Input parameters.
Size of arrays don't match. See description above.
Layer state creation aborted.
Layer state name is invalid. The name may be too long or contains invalid characters.
Provided layer state name already exists in the model.
User Guide References
War dies hilfreich?