Sets the material property values of the selected face.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SelectedFaceProperties( _
ByVal RgbColor As System.Integer, _
ByVal Ambient As System.Double, _
ByVal Diffuse As System.Double, _
ByVal Specular As System.Double, _
ByVal Shininess As System.Double, _
ByVal Transparency As System.Double, _
ByVal Emission As System.Double, _
ByVal UsePartProps As System.Boolean, _
ByVal FaceName As System.String _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim RgbColor As System.Integer
Dim Ambient As System.Double
Dim Diffuse As System.Double
Dim Specular As System.Double
Dim Shininess As System.Double
Dim Transparency As System.Double
Dim Emission As System.Double
Dim UsePartProps As System.Boolean
Dim FaceName As System.String
Dim value As System.Boolean
value = instance.SelectedFaceProperties(RgbColor, Ambient, Diffuse, Specular, Shininess, Transparency, Emission, UsePartProps, FaceName) |
Parameters
- RgbColor
Face color (see Remarks)
- Ambient
0.0 <= Face ambient light value <= 1.0
- Diffuse
0.0 < Face diffuse value <= 1.0
- Specular
0.0 < Face specular value <= 1.0
- Shininess
0.0 < Face shininess value <= 1.0
- Transparency
0.0 <= Face transparency value <= 1.0
- Emission
0.0 <= Face emission value <= 1.0
- UsePartProps
True if the face inherits the Part properties, false if not
- FaceName
Name of the face
Return Value
True if face properties successfully changed, false if not
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0