Sets the material for this body.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetMaterialProperty( _
ByVal ConfigName As System.String, _
ByVal Database As System.String, _
ByVal MaterialName As System.String _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As IBody2
Dim ConfigName As System.String
Dim Database As System.String
Dim MaterialName As System.String
Dim value As System.Integer
value = instance.SetMaterialProperty(ConfigName, Database, MaterialName) |
Parameters
- ConfigName
- Name of configuration
- Database
- "solidworks material.sldmat" or "" or "custom materials.sldmat" (see Remarks)
- MaterialName
- Name of the SOLIDWORKS material to apply to the body (see Remarks)
Return Value
Return status as defined by
swBodyMaterialApplicationError_e
Example
Remarks
See Also
Availability
SOLIDWORKS 2010 FCS, Revision Number 18.0