I am new to lisp but I have experience with other programming languages.
I am trying to create roof meshes from a number of polylines, there are thousands, so I am trying to write a simple script to get the job done.
here is what I have so far
Because I can't apply the roofconvert command to a set of polylines I have go through the selected set one object at a time and run that command.Code:(defun roofmaker( / sset item ctr) (while (setq sset (ssget)) (setq ctr 0) (repeat (sslength sset) (setq item (sset ctr)) (command "_.roofconvert" item "" "n" ) (setq ctr (1+ ctr)) );repeat );while (princ) );defun (princ)
Right now I am getting an error, I am guessing it something to do with the selection list but I am not sure.