Adds a type of light source to a scene with the specified names.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddLightSource( _
ByVal IdName As System.String, _
ByVal LTyp As System.Integer, _
ByVal UserName As System.String _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim IdName As System.String
Dim LTyp As System.Integer
Dim UserName As System.String
Dim value As System.Boolean
value = instance.AddLightSource(IdName, LTyp, UserName) |
C# | |
---|
System.bool AddLightSource(
System.string IdName,
System.int LTyp,
System.string UserName
) |
C++/CLI | |
---|
System.bool AddLightSource(
& System.String^ IdName,
& System.int LTyp,
& System.String^ 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