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:
SSGET modifies the color of the primitives in the group
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: SSGET modifies the color of the primitives in the group (Read 1635 times)
0 Members and 1 Guest are viewing this topic.
well20152016
Newt
Posts: 130
SSGET modifies the color of the primitives in the group
«
on:
January 15, 2019, 04:26:37 AM »
SSGET modifies the color of the primitives in the group
Logged
well20152016
Newt
Posts: 130
Re: SSGET modifies the color of the primitives in the group
«
Reply #1 on:
January 15, 2019, 04:38:26 AM »
This is the wrong answer.
(DEFUN C:TT()
(SETQ SS (SSGET) N 0)
(repeat (sslength ss)
(setq e (ssname ss n)
n (1+ n))
(setq en (vlax-ename->vla-object e))
(vla-put-Color EN 6) ))
Logged
ronjonp
Needs a day job
Posts: 7527
Re: SSGET modifies the color of the primitives in the group
«
Reply #2 on:
January 15, 2019, 09:17:23 AM »
Maybe the correct answer?
Code - Auto/Visual Lisp:
[Select]
(
defun
c:tt
(
/
e en n ss
)
(
setvar
'pickstyle
0
)
(
setq
ss
(
ssget
)
n
0
)
(
repeat
(
sslength
ss
)
(
setq
e
(
vlax
-
ename
->
vla-object
(
ssname
ss n
)
)
n
(
1+
n
)
)
(
vla-put-color
e
6
)
)
(
setvar
'pickstyle
1
)
)
«
Last Edit: January 15, 2019, 09:23:01 AM by ronjonp
»
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
well20152016
Newt
Posts: 130
Re: SSGET modifies the color of the primitives in the group
«
Reply #3 on:
January 15, 2019, 09:50:00 PM »
ronjonp,thank!
Logged
ronjonp
Needs a day job
Posts: 7527
Re: SSGET modifies the color of the primitives in the group
«
Reply #4 on:
January 16, 2019, 09:06:37 AM »
You're welcome
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
SSGET modifies the color of the primitives in the group