API 文件集 > Creo Parametric fundamentals > Object ProLayer > Function ProLayerDefLayerSet
Function ProLayerDefLayerSet
Description
Sets up a default layer of the specified type. Note: This function is equivalent to setting the default layer name for the session using the configuration option "def_layer". This does not save the status to a particular model. The default layer status does not remain on a layer if it is renamed.
Replacement in Object TOOLKIT:
Synopsis
#include <ProLayer.h>
ProLayerDefLayerSet
(
ProDefLayerType def_layer_type
/* (In)
The type of default layer to set up.
*/
ProName def_layer_name
/* (In)
The name of the default layer to set up. If this is an empty name, the function unsets the default layer.
*/
)
Returns
The function successfully set up the default layer.
def_layer_name contains invalid characters.
def_layer_type is invalid.
Sample Code References
這是否有幫助?