Local Method
Description
Defines local coordinate systems.
Syntax
Sub Local (LocalNumber As Integer, OriginPoint As SpelPoint, [XAxisPoint As SpelPoint], [YAxisPoint As SpelPoint])
Sub Local (LocalNumber As Integer, LocalPoint1 As Integer, BasePoint1 As Integer, LocalPoint2 As Integer, BasePoint2 As Integer)
Sub Local (LocalNumber As Integer, LocalPoint1 As String, BasePoint1 As String, LocalPoint2 As String, BasePoint2 As String)
Parameters
- LocalNumbe
The local coordinate system number. A total of 15 local coordinate systems (integer between 1 and 15) may be defined. - OriginPoint
A SpelPoint variable indicating the origin of the local coordinate system. - XAxisPoint
Optional. A SpelPoint variable indicating a point on the X axis in the local coordinate system. - YAxisPoint
Optional. A SpelPoint variable indicating a point on the Y axis in the local coordinate system. - LocalPoint1, LocalPoint2
Specifies the point data in the local coordinate system using an integer or character string. - BasePoint1,BasePoint2
Specifies the point data in the base coordinate system using an integer or character string.
Remarks
If an error occurs and the ErrorNumber property of the SpelException is 3101, see the remarks in the SetPoint method.
See Also
Base Method, SetPoint Method
Local Example
VB Example:
Dim originPoint As New SpelPoint
originPoint.X = 100
originPoint.Y = 50
m_spel.Local(1, originPoint)
C# Example:
SpelPoint originPoint = new SpelPoint();
originPoint.X = 100;
originPoint.Y = 50;
m_spel.Local(1, originPoint);