Sets direction light properties.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetDirectionLightProperties( _
ByVal Name As String, _
ByVal Ambient As Double, _
ByVal Diffuse As Double, _
ByVal Specular As Double, _
ByVal Colour As Integer, _
ByVal Enabled As Boolean, _
ByVal Fixed As Boolean, _
ByVal X As Double, _
ByVal Y As Double, _
ByVal Z As Double _
) As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim Name As String
Dim Ambient As Double
Dim Diffuse As Double
Dim Specular As Double
Dim Colour As Integer
Dim Enabled As Boolean
Dim Fixed As Boolean
Dim X As Double
Dim Y As Double
Dim Z As Double
Dim value As Boolean
value = instance.SetDirectionLightProperties(Name, Ambient, Diffuse, Specular, Colour, Enabled, Fixed, X, Y, Z)
|
Parameters
- Name
Light name to modify
- Ambient
Light source ambient value
- Diffuse
Light source diffuse value
- Specular
Light source specular value
- Colour
COLORREF color value
- Enabled
True to enable the light, false to not
- Fixed
True to fix the light, false to not
- X
- x component of the light direction ve
- Y
y component of the light direction vector
- Z
z component of the light direction vector
Return Value
True if light properties change successfully, false if not
See Also
Availability
SolidWorks 2001Plus FCS, Revision Number 10.0