• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

error in a file lisp

  • Thread starter Thread starter joe
  • Start date Start date
Then this time I entered the right file, sorry was my mistake. Your correction works perfectly. But now you should explain to me what happened and if the correction I can apply it to other lisp that could cause problems. Meanwhile something happened even if I think visual lisp is loaded properly.
to get the name (id) the object in vla-object format is used the function vla-handletoobject instead of vlax-ename->vla-object that turns out to be unavailable.

you can use the same technique in other programs. instead of you I would create a vlax-ename->vla-object function with a defunct redefining the original and charging it in an acad.lsp file.
Code:
(refun vlax-ename->vla object (n)
(cdr (assoc 5 (entget n)))
)
if a warning appears that warns you that you are 'refining a protected symbol' click on no.
 
Sorry, when autocad boot opens directly a new custom file in this case the lisp does not work. instead when I open a new file again, the lisp works. How come?
 
Please give me instructions on how to insert your last code? I tried and tried but nothing. on startup opens a new file directly but the lisp does not work.
As soon as I reopen a new design, everything goes smoothly. I think the problem is when autocad starts.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top