Creates a sketch line in the currently active 2D or 3D sketch.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function ICreateLine2( _
ByVal P1x As System.Double, _
ByVal P1y As System.Double, _
ByVal P1z As System.Double, _
ByVal P2x As System.Double, _
ByVal P2y As System.Double, _
ByVal P2z As System.Double _
) As SketchSegment |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim P1x As System.Double
Dim P1y As System.Double
Dim P1z As System.Double
Dim P2x As System.Double
Dim P2y As System.Double
Dim P2z As System.Double
Dim value As SketchSegment
value = instance.ICreateLine2(P1x, P1y, P1z, P2x, P2y, P2z) |
C# | |
---|
SketchSegment ICreateLine2(
System.double P1x,
System.double P1y,
System.double P1z,
System.double P2x,
System.double P2y,
System.double P2z
) |
C++/CLI | |
---|
SketchSegment^ ICreateLine2(
& System.double P1x,
& System.double P1y,
& System.double P1z,
& System.double P2x,
& System.double P2y,
& System.double P2z
) |
Parameters
- P1x
X value of the line start point
- P1y
- Y value of the line start point
- P1z
Z value of the line start point
- P2x
X value of the line end point
- P2y
Y value of the line end point
- P2z
Z value of the line end point
Return Value
Newly created
ISketchSegment object; if the operation fails, then NULL is returned
Remarks
See Also
Availability
SolidWorks 2001Plus FCS, Revision 10.0