AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When using object data functions on Visual Lisp freezes autocad

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
778 Views, 2 Replies

When using object data functions on Visual Lisp freezes autocad

Hello!

 

I'm trying to create a OD table but Autocad Map 3D 2019 it always freezes no matter what "ade_od" function I use

 

; Define new table
(setq tabldefn
'(("tablename" . "NEWTABLE")
("tabledesc" . "New Sample Table")
("columns"
; Define a field
(("colname" . "FIELD1")
("coldesc" . "Field1 Description")
("coltype" . "character")
("defaultval" . "Default Value"))
; Define more fields as needed
)
))
; Create the new table
(ade_oddefinetab tabldefn)

 

Help!

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Maybe I found a solution...

For anyone interested check attached file test1.lsp (did not freezes Autocad Model Space)

 

; https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/map-query-through-lisp/td-p/2235108

(setq ade_cmddia_before_qry (getvar "cmddia"))
(setvar "cmddia" 0) 

(mapcar 'ade_dwgdeactivate (ade_dslist))

 

After using any ADE_OD commands run

(setvar "cmddia" ade_cmddia_before_qry)

Message 3 of 3
Anonymous
in reply to: Anonymous

Hi, I had the same issue with 

ade_odgettables 

Your solution worked for me, but I don't understand why. Do you have any ideas? Thanks. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


AutoCAD Beta