Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.38 KB

File metadata and controls

55 lines (43 loc) · 1.38 KB

GetLName

Description

Function GetLName returns the name of the referenced layer.

FUNCTION GetLName(h : HANDLE): STRING;
def vs.GetLName(h):
    return STRING

Parameters

Name Type Description
h HANDLE Handle to layer.

Remarks

Returns the name of the referenced layer.

[sd 8/14/98]

Examples

IsolateLayer

actLayerH := actLayer;
IF GetLayer (h) <> NIL THEN Layer (GetLName (GetLayer (h)));
{Layer (GetLName (GetLayer (h)));}
getArcProps (objH, method, r, theta1, theta2, maxSegLength, x, y);

BEGIN
	gActlayName := GetLName(ActLayer);
	tmpQStr := Concat('((SEL) & (L = ',QStr(gActLayName),'))');
	ObjCount := 0;
	ObjCount := Count(tmpQStr);
	IF ObjCount > 0 THEN

{store the active Layer}
actLH := ActLayer;
{change the active Layer}
Layer( GetLName( GetLayer( textFoundH ) ) );
activeLayerName = vs.GetLName( vs.ActLayer() )

See also in tutorials: 10. Iterate the Drawing and Report a Summary, 22. Selected Objects → Worksheet Rows, 23. Count Objects by Criteria (Formula-Driven), 25. Geometric Property Extraction Table

Version

Availability: from All Versions

Category