Share

Acad.Application.activedocument Functions

Description

Represents the current document.

Some of the functions related to activedocument support an event names value. The supported event names are as follows:

eventname = {
    modified: "modified",
    erased: "erased"
};

Functions

This section contains a list of the Acad.Application.activedocument functions.

  Name Description
Member Type, Function Acad.Application.activedocument.capturePreview Use this method to capture an image of the current document. The image is returned as a Base64 encoded bitmap. This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError) function.
Member Type, Function Acad.Application.activedocument.getHandle Use this method to get an array of handles from the OSet. This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError) function.
Member Type, Function Acad.Application.activedocument.getObjectSet Use this function to get the array of object IDs from the handles. This function returns a promise pattern result, it has to be called as a Promise Pattern with .then(onSuccess, onError) function.
Member Type, Function Acad.Application.activedocument.highlight Use this function to highlight the list of entities represented by the given OSet.
Member Type, Function Acad.Application.activedocument.startObserving Use this function to subscribe to object event notifications for an object.
Member Type, Function Acad.Application.activedocument.stopObserving Use this function to unsubscribe from receiving object event notifications for an object.
Member Type, Function Acad.Application.activedocument.transientManager Use to get the Transient Manager object of the current drawing.
Member Type, Function Acad.Application.activedocument.unhighlight Use this function to unhighlight the list of entities represented by the given OSet.

Was this information helpful?