Create a Double Click Action (Concept)

AutoCAD

 
Create a Double Click Action
Concept Procedure Quick Reference
 
 
 

Double click actions are used to make editing commands accessible when the cursor is positioned over an object in a drawing and a double-click is registered from a pointing device. The double click actions are object type sensitive, allowing you to set up a specific command to use for a specific object type.

Double click actions execute a command that displays either the Properties palette or a specialized editor that is more powerful, convenient, or frequently used for the object type that is double-clicked in a drawing. The following table shows the definition of the Attribute Block double click action in the CUI Editor.

Properties for the Attribute Block double click action

Properties pane item

Description

Example

Name

String used to identify the double click action in the CUI Editor.

Attribute Block

Description

Text used to describe the element in the CUI Editor.

 

Object Name

Determines the type of object the double click action is associated to.

ATTBLOCKREF

Element ID

Uniquely identifies a double click action in the CUI Editor.

DC_0002

Double Click Action Object Names

Double click actions are referenced by the value of the Object Name property that must match a valid drawing interchange format (DXF) name. There are some exceptions that do not use the DXF name. These exceptions are for blocks, dynamic blocks, and external references, which use special object names. For example, the double click action named “Attribute Dynamic Block” in the acad.cui file uses the object name ATTDYNBLOCKREF.

The following table shows the object names that are specific to blocks, dynamic blocks, and external references.

Object names specific to inserted objects

Object Name

Description

BLOCKREF

Block reference without attributes

ATTBLOCKREF

Block reference with attributes

DYNBLOCKREF

Dynamic block reference without attributes

ATTDYNBLOCKREF

Dynamic block reference with attributes

XREF

External reference (xref)

NoteIf more than one object is selected or if a double click action is not associated with an object type, the default command used is PROPERTIES.

The following table shows some of the object names that are set up in the acad.cui file. Expand the Double Click Actions node in the Customize User Interface (CUI) Editor for a complete listing of all the actions that are defined.

 

Object Type

Command (Macro)

ATTDEF

DDEDIT

ATTRIB

ATTIPEDIT

ATTBLOCKREF

EATTEDIT

ATTDYNBLOCKREF

EATTEDIT

BLOCKREF

$M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C_bedit)

DYNBLOCKREF

$M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C_bedit)

HATCH

HATCHEDIT

IMAGE

IMAGEADJUST

LWPOLYLINE

PEDIT

MLINE

MLEDIT

MTEXT

MTEDIT

POLYLINE

PEDIT

SECTIONOBJECT

LIVESECTION

SPLINE

SPLINEDIT

TEXT

DDEDIT

XREF

REFEDIT

NoteDouble click actions cannot be created for OLE and Viewport objects.