Sets the material library for the solid body.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetLibraryMaterial2( _
ByVal SLibWithPathName As System.String, _
ByVal SMaterialName As System.String _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ICWSolidBody
Dim SLibWithPathName As System.String
Dim SMaterialName As System.String
Dim value As System.Boolean
value = instance.SetLibraryMaterial2(SLibWithPathName, SMaterialName) |
Parameters
- SLibWithPathName
- Path to the material library folder
- SMaterialName
- Material name
Return Value
-1 or true if material library and name are set, 0 or false if not
Example
See Also
Availability
SOLIDWORKS 2022 FCS, Revision Number 30