GetMaterialReference
This function allows you to retrieve a material reference from a connection.
Signature
GetMaterialReference()
Arguments
| Input/Output | Required? | Type | Comment |
|---|---|---|---|
| Input | | CATMatConnection | - |
| Output | | CATMatReference | - |
ReturnType
Boolean
Allows Applied-Material Only if Name Starts with 3DEXPERIENCE
Let MaterialRef (CATMatReference)
Let MaterialName(String)
Set MaterialRef = ThisObject.GetMaterialReference()
Validation = False
if (MaterialRef <> NULL) {
MaterialName = MaterialRef.GetAttributeString("V_Name")
if(0==MaterialName .Search("3DExperience")){
Validation = True
}
}