Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1020 Bytes

File metadata and controls

38 lines (28 loc) · 1020 Bytes

IsLayerReferenced

Description

Returns whether a layer is workgroup referenced, and if so, the path to the source document is returned.

FUNCTION IsLayerReferenced(
				layer        : HANDLE;
				VAR pathname : STRING): BOOLEAN;
def vs.IsLayerReferenced(layer):
    return (BOOLEAN, pathname)

Parameters

Name Type Description
layer HANDLE Handle to the layer
pathname STRING On return, a string containing the path to the source document

Remarks

This returns FALSE on broken references to layers belonging to files residing on external disks. It is not correct, even if the reference is broken, the layer is nevertheless referenced, so the routine should return TRUE. (VW 13-83388).

Use the pref object boo 700, instead, it is more secure:

IsReferenced := GetObjectVariableBoolean(handleToResourceDefinition, 700); { locked/referenced status }

Version

Availability: from VectorWorks10.0

Category