Hello guys;
it has been 15 years I have been using Autocad. First time I am dealing with this issue. I have never experienced it. On my MAC I am running Autocad 2020. I tried to load bom lengths lisp. For me, it is a life-saving lisp. I could not find a way to run it properly.
I manage to load it successfully. Yet when I try to use it, it is not working. I can find the new app on the command line. After I hit for running the app it doesn't do anything.
Thanks a lot in advance.
Solved! Go to Solution.
Solved by maxim_k. Go to Solution.
Hello Maxim;
first of all thanks for your time and answer. Yes, I got lisp file from that directory. Yet I used the same lisp before on my Macbook Air. And it worked very well on this computer. I am afraid it is not just about Mac. It may something about the new version of OS or Autocad. But there is must be a way to run this lisp on my computer. I do not believe that is not possible. It is just a simple lisp.
Thank you.
Best.
@Anonymous wrote:
..... Yet I used the same lisp before on my Macbook Air. And it worked very well on this computer.,,,
It is impossible to use it in AutoCAD for Mac, because in the form in which it currently exists, it contains functions which are not supported on Mac.
Look at the code snippet with the main function - (bom-code) from BOMLengths.lsp file:
(setq %i 0
%t 0
)
(vl-load-com)
(setq sset (ssget ssfilter))
(if sset
(progn
(princ "\nLengths:")
(repeat (sslength sset)
(setq en (ssname sset %i))
(setq ed (entget en))
(setq ot (dxf 0 ed))
(setq curve (vlax-ename->vla-object en))
(if (vl-catch-all-error-p
(setq len (vl-catch-all-apply
'vlax-curve-getDistAtParam
(list curve
(vl-catch-all-apply
'vlax-curve-getEndParam
(list curve)
)
)
)
)
)
nil
len
)
Do you see functions functions that start with "vl"?
They are:
(vl-load-com)
Command: (vl-load-com)
; error: vl-load-com not supported on "Mac OS X Version 10.15 (x86_64)"
Command: (vl-load-com)
; error: vl-load-com not supported on "Mac OS X Version 10.14 (x86_64)"
Can't find what you're looking for? Ask the community or share your knowledge.