TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Shaj on September 20, 2021, 08:52:05 AM

Title: lisps to plain AutoLISP without VL-function
Post by: Shaj on September 20, 2021, 08:52:05 AM
I am recently brought a mac mini in an impression it would be more interesting to use AutoCAD.

but my 2 small lisp file not loading in it , without I cannot work at all.

 

Can you help me to sort it out please?

 

2 files - flex.lsp, plp.lsp

https://we.tl/t-U5GzRsBpsT
Title: Re: lisps to plain AutoLISP without VL-function
Post by: mhupp on September 20, 2021, 10:24:48 AM
All versions of AutoCAD for Mac doesn't include support for Visual LISP. And the only one way to resolve this is to rewrite routine using plain AutoLISP or ObjectARX.

oof

so all the vl- functions are ok its the vla vlx that need to change.

-----

Might want to switch over to BricsCAD like myself.
https://www.cadnauseam.com/2018/09/03/at-long-last-a-lisp-ide-comes-to-osx/
Title: Re: lisps to plain AutoLISP without VL-function
Post by: BIGAL on September 20, 2021, 09:55:47 PM
This object could be created using no VL just have to go in different direction for initial pick point. A entsel returns a pick point which may not lay on a line, but you can return that distance and work out where that point would be using polar and you know the angle of the line so know perp direction. Its just a math question using polar to work out points. Understand may give multi answer depends on line length.

Agree maybe Bricscad on MAC there are some comments re VLA function on MAC but nothing that can not be fixed quickly.

Re the dia select could use this needs 1 line changed to a known file rather than using vl-mktemp. Sizes are up to you.

Title: Re: lisps to plain AutoLISP without VL-function
Post by: BIGAL on September 22, 2021, 02:26:35 AM
Re Flex For me its possibly easier to just write a new version, so a couple of questions, do you want just 1 flex joint or multiple say choose 1,2,3,4,5 etc then dia do you have a few sizes that you use all the time can add that as well. Note would only work on lines. What layer for flex lines thinking make them a block.

(http://)