TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: GDF on August 01, 2019, 09:58:57 AM
-
I would like to get all of "SS" occurrences of the array; where "LEVELS" is the total number of the array repeat.
The code below will only pick up the first:
(setq SS (ssadd))
(command "array" (entlast) "" "r" (rtos (- LEVELS 1) 2 0) "1" flrheight)
(setq SS (ssadd (entlast) SS))
Thanks for any help
-
Not exactly sure what you're asking for but this should return the number of columns and rows in an array.
(defun c:foo
(/ _getrc s
) )
)
)
)
)
-
Thanks Ron
I'm having trouble with the selection set capturing all of the lines that make up the curtainwall in elevation.
I thought it was with the array command...now I'm not sure.
;;;;;;;;;;;;;;;;;;;;;;;; Curtainwall Elevation Function ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun draw_cwall ()...
Thanks for any guidance you can give me.
-
Sorry Gary I'm not sure what you're trying to do.
An array is just a block so if you need to get all individual items, you could use vla-explode then have all the individual pieces to work with.
-
No problem...
Thanks anyway
-
I think I found a solution:
The (setq ss (ssadd (entlast) ss)) was not picking up all of the linework in the selection set..
Replaced (createblock-elev ss a))
With (createblock-elev (ssget "X" '((0 . "LINE")(8 . "A-GLAZ-MULL"))) a))
-
For those following this thread, it was never an array problem. The problem was selection set gathering.
I also modified the code to replace the "Create Block Function" function with a "Raddom Generator Number" function.
Sorry for the confusion.