GetMaterialCore
The
GetMaterialCore
function allows you to retrieve a core
material applied to a support (3D shape).
Core materials applied to finite element model properties and to simulation connection properties of an engineering connection cannot be retrieved.
Signature
GetMaterialCore(Context : VPMReference, Path : String, MatParam : CATMatReference, MatCnx : CATMatConnection) : Boolean
Arguments
Name | Input / Output | Required? | Type | Comment |
---|---|---|---|---|
Context
|
In | Yes | VPMReference | Reference in which the material is applied. |
Path
|
In | Yes | String | Path that identifies the support to which
the material is applied. You can use the
CreatePathString method to retrieve the path
of the support.
|
MatParam
|
Out | Yes | CATMatReference | Core material that is applied to the support. |
MatCnx
|
Out | Yes | CATMatConnection | Applied material (connection that models the material application). |
ReturnType
Boolean
Example
/* Retrieve the core material of a VPMReference in this case, the support is the context, hence path="" */ let Context(VPMReference) let Path(String) let Material(CATMatReference) let AppliedMaterial(CATMatConnection) let returnCode(Boolean) Path="" returnCode = GetMaterialCore(Context,Path,Material,AppliedMaterial) Message(Material.GetAttributeString("PLM_ExternalID"))