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| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to layer. |
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))Relative calls:
- NextObj | PrevObj
- FObject | LObject
- FSActLayer | LSActLayer
- FSObject | LActLayer
- NextDObj | PrevDObj
- NextSObj | PrevSObj
Availability: from All Versions