I have two types of project types. One is "BBV (ADA SK)" & the other type is anything else. I have an if statement that requires two things to be true then it opens up a drawing. If one of those things is not true i want it to open up another drawing. ln7, ln10, ln13, ln16 are all variables that the program reads from an asci file.
Code:
(if (AND(= tbck nil)(= ln16 "BBV (ADA SK)"))
(while
(progn
(setq filepath (strcat (getvar "dwgprefix") ln10 "-" ln7 "," " " ln13 " ADA SK.DWG"))(setq filepath nil)
);end of first progn
);endwhile
(progn
(setq filepath (strcat (getvar "dwgprefix") ln10 " " ln7 " " ln13 " ADA SK.DWG"))(setq filepath nil)
);end of second ptogn
)
I've tried a couple of different things to get this to work. I can get the first part to work if i take out the 2nd part but if i leave the whole thing in it doesn't open up the drawing which would be "ln10 "-" ln7 "," " " ln13 " ADA SK.DWG". So basically if the drawing is the "BBV (ADA SK)" project type & tbck is set to nil i want it to open up "ln10 "-" ln7 "," " " ln13 " ADA SK.DWG". If those conditions are not met i want it to open up "ln10 " " ln7 " " ln13 " ADA SK.DWG".