NEXTMARCUS Posted February 21, 2013 Author Share Posted February 21, 2013 the table in .dwg file i uploaded was done manualy so the data in the table can be disregarded, was just an example. Quote Link to comment Share on other sites More sharing options...
Bill Tillman Posted February 21, 2013 Share Posted February 21, 2013 1 question, what this function progn do exactly? (progn Is used after an IF statement to indicate you have multiple statements to follow. If you have only one statement in the IF code, then you can omit the (progn. And of course you can have multiple (progn to nest your IF statements. It's similar to THEN, ELSE or ELSEIF when programming in other languages like VB. I sometimes have trouble with a block of code and a missing (progn is usually the culprit. (if (= x 1) (progn (command "._LINE" pt1 pt2 "") (command "._LINE" pt3 pt4 "") . . (do some more stuff if needed) . ); end progn[color="red"] (only execute the above lines if the IF was True)[/color] (progn (command "._LINE" pt5 pt6 "") (command "._LINE" pt7 pt8 "") ); end progn[color="red"] (only execute if the IF was not True)[/color] ); end if Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.