Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 1.52 KB

File metadata and controls

64 lines (52 loc) · 1.52 KB

FSObject

Description

Function FSObject returns the handle to the first selected object in the referenced layer. If no objects are selected, the function returns NIL.

FUNCTION FSObject(h : HANDLE): HANDLE;
def vs.FSObject(h):
    return HANDLE

Parameters

Name Type Description
h HANDLE Handle to layer.

Examples

BEGIN
pluginH := FSObject(currLayer);
while (pluginH <> NIL) Do
	BEGIN
	IF (pluginH <> origObj) THEN
		ApplyMarkerStyleToSEM;

{ go trough the selection. }
hSelObj 	:= FSObject( hLayer );

BEGIN
	TheMulti := FSObject(TheLayer);
	IF (GetName(GetParametricRecord(TheMulti)) = kBOLabelName) THEN
		BEGIN
			Obj := TheMulti;
			TheMulti := GetObject(GetRField(Obj,kBOLabelName,'MultiUID'));
import vs

# Function FSObject returns the handle to the first selected object in the
# referenced layer.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

objHandle = vs.FSObject(h)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

See Also

Relative calls:

Version

Availability: from All Versions

Category