Macros are not getting loaded Automatically

Macros are not getting loaded Automatically

AK_UPPALA
Contributor Contributor
150 Views
1 Reply
Message 1 of 2

Macros are not getting loaded Automatically

AK_UPPALA
Contributor
Contributor

I am currently facing an issue where pre-defined macro files (.ATCM or .ACTMX) are not automatically loaded upon launching an AutoCAD session.

As part of my workflow, I’ve developed a custom LISP routine using the command X. Within this routine, I attempt to invoke the macro command Y after executing X. However, the macro Y only functions correctly if the macro is manually loaded or if the ACTMANAGER command has been executed beforehand. The relevant code snippet is as follows:

lisp
(defun c:X ()
(command "Y")
)

I would appreciate your guidance on how to ensure the macro file is automatically loaded at the start of the session, or on any alternative approach that would allow Y to execute reliably without manual intervention.

 

0 Likes
151 Views
1 Reply
Reply (1)
Message 2 of 2

O_Eckmann
Mentor
Mentor

Hi @AK_UPPALA ,

 

Have you check ACTRECPATH and ACTPATH variable defining path where AutoCAD could find and automatically load ACTM file.

 

Olivier Eckmann

EESignature

0 Likes