Adds a type of light source to a scene with the specified names.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddLightSource( _
ByVal IdName As String, _
ByVal LTyp As Integer, _
ByVal UserName As String _
) As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim IdName As String
Dim LTyp As Integer
Dim UserName As String
Dim value As Boolean
value = instance.AddLightSource(IdName, LTyp, UserName)
|
Parameters
- IdName
New light source ID name
- LTyp
New light source type:
-
1 = Ambient light
-
2 = Spot light
-
3 = Point light
-
4 = Directional light
- UserName
New light source user name
Return Value
True if the light source creation was successful, false if not; for example, creation of a light source fails if IdName is not unique within this model
See Also
Availability
SolidWorks 2001Plus FCS, Revision Number 10.0