SpelPoint クラス

複数の動作メソッドで使用可能です。また、SpelクラスのGetPointやSetPointメソッドでも使用可能です。
下にVisual Basicの例を示します。

例1:

Dim pt As New RCAPINet.SpelPoint(25.5, 100.3, -21, 0)  
m_spel.Go(pt)  

例2:

Dim pt As New RCAPINet.SpelPoint  
pt.X = 25.5  
pt.Y = 100.3  
pt.Z = -21  
m_spel.Go(pt)  

例3:

Dim pt As New RCAPINet.SpelPoint  
pt = m_spel.GetPoint("P*")  
pt.Y = 222  
m_spel.Go(pt)  

下にVisual C# の例を示します。
1:

SpelPoint pt = new SpelPoint(25.5, 100.3,  -21, 0);  
m_spel.Go(pt);  

2:

SpelPoint pt = new SpelPoint();  
pt.X = 25.5;  
pt.Y = 100.3;  
pt.Z = -21;  
m_spel.Go(pt);  

3:

SpelPoint pt = new SpelPoint();  
pt = m_spel.GetPoint("P0");  
pt.Y = 222;  
m_spel.Go(pt);  

SpelPointプロパティー

VB 例:
X As Single
Y As Single
Z As Single
U As Single
V As Single
W As Single
R As Single
S As Single
T As Single
Hand As SpelHand
Elbow As SpelElbow
Wrist As SpelWrist
Local As Integer
J1Flag As Integer
J2Flag As Integer
J4Flag As Integer
J6Flag As Integer
J1Angle As Single
J4Angle As Single

C# 例:
float x
float y
float z
float u
float v
float w
float r
float s
float t
SpelHand Hand
SpelElbow Elbow
SpelWrist Wrist
int Local
int J1Flag
int J2Flag
int J4Flag
int J6Flag
float J1Angle
float J4Angle

SpelPointメソッド

Sub Clear ()
すべてのポイントデータをクリアします。

Sub New ()
デフォルトのコンストラクター空のポイントを作成します。 (すべてのデータがクリアされます。)

Sub New (X As Single, Y As Single, Z As Single, U As Single [, V As Single] [, W As Single])
座標を指定する新しいポイントのためのオプションのコンストラクター

Function ToString([Format As String]) As String
Formatが指定できるようにToStringをオーバーライドしたもので、SPEL+で定義したポイントを返します。

パラメーター

  • Empty:
    すべての座標と属性とともにポイント全体を返します
    "XY": "XY(…)"を返します
    "XYST": "XY(…) :ST(…)"を返します