Lisp error in 2025 - ACET-UI-MESSAGE

Lisp error in 2025 - ACET-UI-MESSAGE

1wildwes
Collaborator Collaborator
1,554 Views
8 Replies
Message 1 of 9

Lisp error in 2025 - ACET-UI-MESSAGE

1wildwes
Collaborator
Collaborator

Please ignore this post - was referencing wrong lisp - I understand 2025 causes errors in some lisp routines. I found on here that (load "acetutil") needs to be inserted into the routine. I am not sure exactly how/where to insert this. I tried and failed.

 

Here's the beginning of the routine, which does not show correct indentations. Full routine attached.

 

;
;=============================================

(DEFUN C:XD (/ bl blst ent ans)
(setq bl (entsel))
(setq blst (entget (car bl)))
(setq ent (cdr (assoc 0 blst)))
(if (= ent "INSERT")
(progn
(setq xname (cdr (assoc 2 blst)))
(CHKREF)
(if (= check_val 1)
(progn
(prompt (strcat "\nThis will detach XREF: " (strcase xref)))
(initget "Yes No")
(setq ans (getkword "\nAre you sure you want to do this? (Y or N)"))
(if (= ans "Yes")
 (progn
(command "xref" "detach" xname)
(prompt (strcat "\nXREF: " (strcase XREF) " - Detached" ))
(princ)
)

0 Likes
Accepted solutions (2)
1,555 Views
8 Replies
  • Lisp
Replies (8)
Message 2 of 9

paullimapa
Mentor
Mentor
Accepted solution

What makes you think you need to load that? 

If you do, you can place that statement as the first line of code in your lisp file.

But I would test that afterwards within your code to make sure you have Express Tools loaded by doing something this:

(if(and(member "acetutil.arx"(arx))acet-ui-getfile)
    (setq aec_acet 1)(setq aec_acet 0)
   )

So now your code can test for aec_acet if = 1 that means Express Tools is present & loaded...otherwise if = 0 then not loaded.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 9

1wildwes
Collaborator
Collaborator

The lisp as it is revised suddenly began to work.

0 Likes
Message 4 of 9

1wildwes
Collaborator
Collaborator

I think I found it on Adesk help, but now I can't find it. The lisp suddenly began working this morning.

I loaded C3D 2025 last week and the lisp received that error message.

 

I'll leave it as is for now. Do you know why it did that or have any other suggestions?

Thanks!

0 Likes
Message 5 of 9

paullimapa
Mentor
Mentor
Accepted solution

without any more detail, I have no idea


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 6 of 9

1wildwes
Collaborator
Collaborator
Thanks - activated express tools
0 Likes
Message 7 of 9

paullimapa
Mentor
Mentor

Glad to have helped…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 8 of 9

Chu663
Community Visitor
Community Visitor

I am using this acet-ui-message on Autocad 2024 work fine but not on the 2025.  Please help

 

(acet-ui-message "No Alignment Bar Found. Adding Alignment Bar Required" "Alignment Bar Error" 16)

0 Likes
Message 9 of 9

paullimapa
Mentor
Mentor

AutoCAD 2025 unlike prior versions does not load all Express Tools so try solution from Autodesk 

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/AutoCAD-2025-Produ...


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos