Acad.Editor Functions
This section contains a list of the Acad.Editor
functions.
Functions
Name | Description | |
---|---|---|
![]() |
Acad.Editor.addCommand | Use this method to register an AutoCAD command. |
![]() |
Acad.Editor.cancelCommand | Use this method to cancel the last command. |
![]() |
Acad.Editor.captureView | Use this function to capture the view information along with optional layer information based on whether layerSnapshot is true or false. |
![]() |
Acad.Editor.CurrentViewport | Represents the current viewport and stores view properties like camera position, target, fieldheight, fieldWidth, upVector, and projection. |
![]() |
Acad.Editor.drag | Use this method to drag a transient entity during jigging. |
![]() |
Acad.Editor.executeCommand | This method accepts a variable number of string arguments and it waits for the command operation to complete. |
![]() |
Acad.Editor.executeCommandAsync | This method accepts a variable number of string arguments and it does not wait for the command operation to complete. |
![]() |
Acad.Editor.getAngle | Use this function to get user input for an angle, taking into account the current value of the ANGBASE system variable. |
![]() |
Acad.Editor.getCorner | Use this function to get user input for the corner of a rectangle. |
![]() |
Acad.Editor.getDistance | Use this function to get user input for a linear distance. |
![]() |
Acad.Editor.getDouble | Use this function to get the double from a user. |
![]() |
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. |
![]() |
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. |
![]() |
Acad.Editor.getInteger | Use this function to get the integer from a user. |
![]() |
Acad.Editor.getKeywords | Use this function to get a keyword as user input. It wraps the acedGetKword() ObjectARX 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. |
![]() |
Acad.Editor.getPoint | Use this function to get user input for a point. |
![]() |
Acad.Editor.getSelection | Use this to return the selection set obtained. |
![]() |
Acad.Editor.getString | Use this function to get user input for a string. |
![]() |
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. |
![]() |
Acad.Editor.restoreView | Use this function to restore the captured view information based on the supplied idUrl identifier. |