I've been trying to to get a list of points (POINTLIST) to place each point (PT) in an active command, and the following string seems to be acting odd.
(command "-refedit" "O" "N" "CP" (foreach PT POINTLIST (Command PT)) "" "N")
This is causing a random point way out of the selection area to be generated between the first point and last point in the POINTLIST, and I'm not sure how to get around it. Any suggestions?
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
Not much diferente, but try it
(command "-refedit" "O" "N" "CP") (foreach pt POINTLIST (command pt)) (command "" "" "N")
HTH
Henrique
That seems to do the trick.
Next question: Is there a way to freeze/turn off objects not in the refedit selection?
@gccdaemon wrote:
That seems to do the trick.
Next question: Is there a way to freeze/turn off objects not in the refedit selection?
I don't see how.
A way to prevent multiple copy of the same entity, is after copy adding the entity name to a list and for the next copy test if the entity name is in the list, if so don't copy, if not, copy and add the name to de list...
HTH
Henrique
I think I'll pass the SS through the isolate command. That should take care of what I need.
Not much diferente, but try it
(command "-refedit" "O" "N" "CP") (foreach pt POINTLIST (command pt)) (command "" "" "N")
HTH
Henrique
You could also use the apply function:
(command "_.-refedit" "_o" "_n" "_cp") (apply 'command pointlist) (command "" "" "_n")
Check out my cross post for a workaround on the "Lock Objects..." not being initialized during the "-Refeidt" command and "copy objects" selecting what should be locked problem.