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)
»
XDRX-API
»
Topic:
[XDrX-Function(22)] point set maximum perimeter rectangle
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: [XDrX-Function(22)] point set maximum perimeter rectangle (Read 285 times)
0 Members and 1 Guest are viewing this topic.
xdcad
Swamp Rat
Posts: 514
WWW
[XDrX-Function(22)] point set maximum perimeter rectangle
«
on:
December 10, 2023, 12:51:39 PM »
Max Perimeter function:
Code - Auto/Visual Lisp:
[Select]
(
xdrx_points_MaxPerimeterBox
<
pts
>
)
parameter:
pts: point
list
return value:
LIST
:
(
point point point point
)
Code - Auto/Visual Lisp:
[Select]
(
defun
c:tt
(
)
(
if
(
setq
ss
(
xdrx
-
ssget
"
\n
Select Points<Exit>"
'
(
(
0
.
"point"
)
)
)
)
(
progn
(
setq
pts
(
xdrx
-
getpropertyvalue ss
"position"
)
pts
(
apply
'
append
pts
)
box
(
xdrx_points_MaxPerimeterBox pts
)
)
(
xdrx
-
polyline
-
make box t
)
(
xdrx
-
setpropertyvalue
(
entlast
)
"color"
4
)
)
)
(
princ
)
)
«
Last Edit: December 10, 2023, 02:20:06 PM by xdcad
»
Logged
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
https://github.com/xdcad
https://sourceforge.net/projects/xdrx-api-zip/
http://bbs.xdcad.net
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
XDRX-API
»
Topic:
[XDrX-Function(22)] point set maximum perimeter rectangle