Search:     Advanced search

GetPoint(X,Y,Hint)

Article ID: 286
Last updated: 23 Sep, 2010
Views: 1010
Posted: 03 Dec, 2008
by Thomas B.
Updated: 23 Sep, 2010
by Murray D.

 

Description:

Requests the user to select a point on the currently selected page. Returns 1 for success and 0 for canceled. X and Y are variables that will receive the resulting point. All parameters are optional. Resulting point can also be accessed by using the ResultPointX, and ResultPointY functions.

Notes:

Example creates a point at the GetPoint location. Copy and paste Script into a new PlanSwift script.

Pascal Example:

ATab := CurrentTab;
X1 := 0;
Y1 := 0;
GetPoint(X1,Y1,'Select Point');
NewPoint := NewItem(ATab);
SetDigitizerType(NewPoint,'Count');
SetItemProperty(NewPoint,'Name','Test Count');
NewSection := AddSection(NewPoint);
AddPoint(NewPoint,X1,Y1,NewSection);

Visual Basic Example:

ATab = CurrentTab
X1 = 0
Y1 = 0
GetPoint(X1,Y1,"Select Point")
NewPoint = NewItem(ATab)
SetDigitizerType(NewPoint,"Count")
SetItemProperty(NewPoint,"Name","Test Count")
NewSection = AddSection(NewPoint)
AddPoint(NewPoint,X1,Y1,NewSection)


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
Point Routines     GetLine(X,Y,X2,Y2,Hint)