Message 1 of 7

Not applicable
03-08-2016
03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
i'm working on a small lisp routine that places an certain amount of blocks (wtk) at a set distance between eachother.
I had in the past did this before but it;s sooo long ago that i forgot how to haha.
So if any of you could point me in the right direction that would be great.
What i was thinking was to add a loop with an increment at the end to end up with the amount as the predetermined "wtk" amount.
then also with each increment amount add 100 to the distance "DisT" so the next block will be placed 100 apart.
But i forgot where to add the increment and how to add 100 to the distance.
Thanks in advance.
(setq wtk (GetCell "B2")) (setq DisT 0.0)
(setq wtkD 0) (while wtkD < wtk (command "insert" "Silo Schoonwater" DisT 1 1 0 ) (setq DisT +(100.0)
(setq wtkD + 1) );end while
Solved! Go to Solution.