Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerRuleCopy


Description
Copy the rules of a layer LayerName in ReferenceModel into a layer LayerName in CurrentModel, overwriting any rules

Note: This function copies both the rules definitions and the rules options set interactively (including option "Associative")

Synopsis
#include <ProLayer.h>
ProErrorProLayerRuleCopy(
ProMdl CurrentModel
/* (In)
The model into which the layer rule will be copied.
*/
ProName LayerName
/* (In)
The name of an existing layer in both models.
*/
ProMdl ReferenceModel
/* (In)
The model from which the layer rules will be copied.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully copied the rules.
PRO_TK_BAD_INPUTSCurrentModel or ReferenceModel is NULL.
PRO_TK_INVALID_PTRCurrentModel or ReferenceModel is not a handle to a model.
PRO_TK_NOT_EXISTLayer LayerName does not exist in one or both models.

Manual References:

  1. Core: Models and Model Items: Layers
  2. Core: Models and Model Items: Layers