Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Trying to simplify or clean up
« previous
next »
Print
Pages:
1
[
2
]
All
|
Go Down
Author
Topic: Trying to simplify or clean up (Read 1979 times)
0 Members and 1 Guest are viewing this topic.
Biscuits
Swamp Rat
Posts: 502
Re: Trying to simplify or clean up
«
Reply #15 on:
December 02, 2021, 08:11:43 AM »
Polylines were plenty long. first pic shows original results. Second pic shows results from second version along with error message:
; error: Automation Error. Invalid input
Logged
mhupp
Bull Frog
Posts: 235
Re: Trying to simplify or clean up
«
Reply #16 on:
December 02, 2021, 02:14:02 PM »
; error: Automation Error. Invalid input
Seems AutoCAD can't process list when making a polyline. Well it needs a little bit of help.
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-polyline-from-a-list/td-p/856098
This works just fine in BricsCAD tho.
(command "_.Pline" pts "")
replace that line with this and should work after that.
(command "_.Pline" (car pts) (cadr pts) "")
Also I remember this from Lee Mac.
http://www.lee-mac.com/circletangents.html
Logged
Biscuits
Swamp Rat
Posts: 502
Re: Trying to simplify or clean up
«
Reply #17 on:
December 02, 2021, 03:36:23 PM »
Works like a charm. Thank you!
Logged
Print
Pages:
1
[
2
]
All
|
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Trying to simplify or clean up