Check if the handle is a schematic view object.
FUNCTION IsLDSchematicViewObj(handle : HANDLE): BOOLEAN;def vs.IsLDSchematicViewObj(handle):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| handle | HANDLE |
BEGIN
IF IsLDSchematicViewObj(InstHandle) THEN
BEGIN
schematicViewName := 'NNA_SchematicViewObject';
SetRField(InstHandle, schematicViewName, 'SchematicUseLegend', LegendName);
SetRField(InstHandle, schematicViewName, 'SchematicUseCustomLegend', 'TRUE');
ENDimport vs
# Check if the handle is a schematic view object.
handle = vs.FSActLayer() # handle to the first selected object on the active layer
ok = vs.IsLDSchematicViewObj(handle)
if ok:
vs.Message('IsLDSchematicViewObj succeeded')
else:
vs.Message('IsLDSchematicViewObj failed')Availability: from Vectorworks 2025