Share

Acad.Editor Functions

This section contains a list of the Acad.Editor functions.

Functions

  Name Description
Member Type, Function Acad.Editor.addCommand Use this method to register an AutoCAD command.
Member Type, Function Acad.Editor.cancelCommand Use this method to cancel the last command.
Member Type, Function Acad.Editor.captureView Use this function to capture the view information along with optional layer information based on whether layerSnapshot is true or false.
Member Type, Function Acad.Editor.CurrentViewport Represents the current viewport and stores view properties like camera position, target, fieldheight, fieldWidth, upVector, and projection.
Member Type, Function Acad.Editor.drag Use this method to drag a transient entity during jigging.
Member Type, Function Acad.Editor.executeCommand This method accepts a variable number of string arguments and it waits for the command operation to complete.
Member Type, Function Acad.Editor.executeCommandAsync This method accepts a variable number of string arguments and it does not wait for the command operation to complete.
Member Type, Function Acad.Editor.getAngle Use this function to get user input for an angle, taking into account the current value of the ANGBASE system variable.
Member Type, Function Acad.Editor.getCorner Use this function to get user input for the corner of a rectangle.
Member Type, Function Acad.Editor.getDistance Use this function to get user input for a linear distance.
Member Type, Function Acad.Editor.getDouble Use this function to get the double from a user.
Member Type, Function Acad.Editor.getEntity Use this function to select an entity by specifying a point. Pauses for user input and returns both an entity name and the point that is used to select the entity. GetEntity() does not returns the name of non-graphical objects.
Member Type, Function Acad.Editor.getFileNameForOpen Use this function to emulate the subtleties of AutoCAD file prompting. It prompts on the command line when FILEDIA is zero, or if a script or an AutoLISP routine is running.
Member Type, Function Acad.Editor.getInteger Use this function to get the integer from a user.
Member Type, Function Acad.Editor.getKeywords Use this function to get a keyword as user input. It wraps the acedGetKword() ObjectARX function.
Member Type, Function Acad.Editor.getNestedEntity Use this function to get the name of an entity selected by the user and the point used to select the entity.
Member Type, Function Acad.Editor.getPoint Use this function to get user input for a point.
Member Type, Function Acad.Editor.getSelection Use this to return the selection set obtained.
Member Type, Function Acad.Editor.getString Use this function to get user input for a string.
Member Type, Function Acad.Editor.isQuiescent Use this function to check if the host is busy processing other commands. If busy, the function returns false, else returns true.
Member Type, Function Acad.Editor.restoreView Use this function to restore the captured view information based on the supplied idUrl identifier.

Was this information helpful?