Search:     Advanced search

ResultPointX2

Article ID: 291
Last updated: 24 Sep, 2010
Views: 771
Posted: 08 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

Description:

Returns X2 of the last point returned by GetPoint, GetLine, or GetRect.

Notes:

Creates a Segment Item at GetLine Location. Using ResultPoints. Copy and past code into New PlanSwift Script.

Pascal Example:

ATab := CurrentTab;
X1 := ResultPointX;
Y1 := ResultPointY;
X2 := ResultPointX2;
Y2 := ResultPointY2;
GetPoint(X1,Y1,X2,Y2,'DrawLine');
NewSegment := NewItem(ATab);
SetDigitizerType(NewSegment,'Segment');
SetItemProperty(NewSegment,'Name','Test Segment');
NewSection := AddSection(NewSegment);
AddPoint(NewSegment,X1,Y1,NewSection);
AddPoint(NewSegment,X2,Y2,NewSection);

Visual Basic Example:

ATab = CurrentTab
X1 = ResultPointX
Y1 = ResultPointY
X2 = ResultPointX2
Y2 = ResultPointY2
GetPoint(X1,Y1,X2,Y2,"Draw Line")
NewSegment = NewItem(ATab)
SetDigitizerType(NewSegment,"Segment")
SetItemProperty(NewSegment,"Name","Test Segment")
NewSection = AddSection(NewSegment)
AddPoint(NewSegment,X1,Y1,NewSection)
AddPoint(NewSegment,X2,Y2,NewSection)


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
ResultPointY     ResultPointY2