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(3)] xdrx-curve-offset ( xdrx_curve_getoffsetcurves )
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: [XDrX-Function(3)] xdrx-curve-offset ( xdrx_curve_getoffsetcurves ) (Read 993 times)
0 Members and 1 Guest are viewing this topic.
xdcad
Swamp Rat
Posts: 527
WWW
[XDrX-Function(3)] xdrx-curve-offset ( xdrx_curve_getoffsetcurves )
«
on:
November 28, 2023, 09:35:21 AM »
Code - Auto/Visual Lisp:
[Select]
(
xdrx
-
curve
-
offset
<
db
-
ent...ge
-
ent..ss..
>
<
int...real...string
>
t
)
exp
:
(
xdrx
-
curve
-
offset
(
list
e1 e2 ss
)
100.0
)
;Offset the processing curve in the increasing direction
(
xdrx
-
curve
-
offset
(
list
e1 e2 ss
)
-
100.0
)
;Offset the processing curve in the direction of reduction
(
xdrx
-
curve
-
offset
(
list
e1 e2 ss
)
50.0
100.0
200.0
)
; OFFSET three times in a row
(
xdrx
-
curve
-
offset
(
list
e1 e2 ss
)
"50.0,100.0,300.0"
)
; OFFSET three times in a row
(
xdrx
-
curve
-
offset
(
list
e1 e2 ss
)
"50.0,100.0,300.0"
t
)
; Give the T parameter and return the point list
Code - Auto/Visual Lisp:
[Select]
(
defun
c:tt
(
)
(
if
(
and
(
setq
e
(
xdrx
-
ssget
"
\n
Select the curve to be OFFSET<Exit>:"
'
(
(
0
.
"*line"
)
)
)
)
(
and
(
/=
""
(
setq
offsetdist
(
getstring
"
\n
Enter OFFSET distance (use, to separate multiple)<Exit>:"
)
)
)
(
xdrx
-
string
-
regexps
"^[-0-9.,]+$"
offsetdist
)
)
)
(
progn
(
xdrx
-
begin
)
(
setq
ss
(
xdrx
-
curve
-
offset e offsetdist
)
)
(
xdrx
-
entity
-
setcolor ss
1
)
(
xdrx
-
end
)
)
)
(
princ
)
)
«
Last Edit: December 04, 2023, 01:28:42 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(3)] xdrx-curve-offset ( xdrx_curve_getoffsetcurves )