Search:     Advanced search

procedure TrimToArea(ItemIDofLinear, ItemIDofArea)

Article ID: 300
Last updated: 24 Sep, 2010
Views: 895
Posted: 11 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

Description:

This routine trims a linear or segment to the specified area.

Notes:

Parameters

ItemIDoFLinear (This parameter is the ID of the Linear that will be trimmed.  This can also be a Segment Item.)

ItemIDoArea (This parameter is the ID of the bounding area that will be used to trim the linear line or segment.)

To test this example draw a new area and name it boundary. Then draw a new linear line through the center of the area and make sure the lines extend past the boundary area. Name the linear LineToTrim. Make sure both items are created within the same tab.

Example:

Pascal Example:

ATab := CurrentTab;
TrimToArea(GetEstItemByName('Line To Trim', ATea),GetEstItemByName('Boundary',ATab));

Visual Basic Example:

ATab = CurrentTab
TrimToArea(GetEstItemByName("Line To Trim", ATea),GetEstItemByName("Boundary",ATab))

.


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
function DigitizerType(ItemID)     Form & Component Routines