Returns whether a resource is workgroup referenced, and if so, the path to the source document is returned.
FUNCTION IsResourceReferenced(
resource : HANDLE;
VAR pathname : STRING) : BOOLEAN;def vs.IsResourceReferenced(resource):
return (BOOLEAN, pathname)| Name | Type | Description |
|---|---|---|
| resource | HANDLE | Handle to the resource |
| pathname | STRING | On return, a string containing the path to the source document |
Returns true if the resource is referenced, false otherwise.
PROCEDURE DoIt(h :HANDLE);
VAR
pathname: STRING;
isref: BOOLEAN;
BEGIN
isref := IsResourceReferenced(h, pathname);
IF (isref) THEN Message(pathname);
END;VS Functions: IsLayerReferenced
Availability: from Vectorworks 2024
- [Object Info](../Categories/Object Info.md)