Hallo cimbom.
Willkommen im Forum.
Unter SWX gibt es eine extra Hilfe zu API. Schau dort mal unter GetPointCoordinates nach. Dort bekommst du folgende Meldung:
Description
This method gets the coordinates for this edge point.
Syntax (OLE Automation)
void = EdgePoint.GetPointCoordinates ( x, y, z)
Output:
(double) x
x coordinate for this edge point
Output:
(double) y
y coordinate for this edge point
Output:
(double) z
z coordinate for this edge point
Die koordinaten kannst du dann neu setzen.
Description
This method sets the location of this sketch point.
Syntax (OLE Automation)
retval = SketchPoint.SetCoords ( xx, yy, zz )
Input:
(double) x
X component of the direction vector
Input:
(double) y
Y component of the direction vector
Input:
(double) z
Z component of the direction vector
Return:
(BOOL) retval
TRUE if the coordinates is successfully set, FALSE if not
Such einfach ein bisschen in der API-Hilfe. Dort stehen alle Befehle.
Gruß, Markus
PS. Sorry, ich glaube der erste Befehl ist falsch. könnte auch dieser sein.
Description
This method gets the sketch point location as an array.
Syntax (OLE Automation)
See SketchPoint::X, SketchPoint::Y, and SketchPoint::Z.
Syntax (COM)
status = SketchPoint->GetCoords ( retval )
Output:
(double*) retval
Pointer to an array of 3 doubles, the x,y,z point location
Return:
(HRESULT)status
S_OK if successful
[Diese Nachricht wurde von Atsam am 21. Apr. 2005 editiert.]
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP