Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1006 Bytes

IsLDSchematicViewObj.md

File metadata and controls

47 lines (38 loc) · 1006 Bytes

IsLDSchematicViewObj

Description

Check if the handle is a schematic view object.

FUNCTION IsLDSchematicViewObj(handle : HANDLE): BOOLEAN;
def vs.IsLDSchematicViewObj(handle):
    return BOOLEAN

Parameters

Name Type Description
handle HANDLE

Examples

BEGIN
	IF IsLDSchematicViewObj(InstHandle) THEN
	BEGIN
		schematicViewName := 'NNA_SchematicViewObject';
		SetRField(InstHandle, schematicViewName, 'SchematicUseLegend', LegendName);
		SetRField(InstHandle, schematicViewName, 'SchematicUseCustomLegend', 'TRUE');
	END
import 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')

Version

Availability: from Vectorworks 2025

Category