Search:     Advanced search

AddPoint(ItemID, X, Y, SectionIndex = 0)

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

 

 

Description:

Adds a new point to the last digitizer object.

Notes:

Creates a Point at the GetPoint location. Copy and paste code 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
ResultPointY2     PointX(ItemID, SectionIndex, PointIndex)