bradb Posted May 27, 2009 Share Posted May 27, 2009 (edited) PFDRAW.zip I checked out LeeMac's PFDRAW routine and did like it very much. However it did not go with what I wanted for a couple of reasons 1. All the variables are metric sizes I draw in inches. 2. I deal with all sizes of pipes and flanges. Please do not take that the wrong way. Major Props to LeeMac. So I decided to give a shot a making a pipe routine and I'll post it here. I am working on one that will do all flange types and sizes. Its only half done but works well so far. Feel free to check out this routine tell me what you think. Even if it sucks I can take it. PIPE is command name. Will draw sizes from 1/8 to 48 with available schedules. It does call for layers "OBJ" and "HID" Edited April 3, 2012 by bradb Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 27, 2009 Share Posted May 27, 2009 Thanks Bradb, I feel honoured Quote Link to comment Share on other sites More sharing options...
Zorg Posted May 28, 2009 Share Posted May 28, 2009 Very nice mate! Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 I added the flange routine to original post. Tell me what you think. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 Just a tip ~ I realise that in my original code I used multiple IF statements to set variables - but I was new to coding and that was one of the first programs I wrote. If you look at the newest version of the LISP (in the AutoLISP Archive) you will notice that I use COND statements to do the same job. This is tidier and much better coding practice Lee Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 Just a tip ~ I realise that in my original code I used multiple IF statements to set variables - but I was new to coding and that was one of the first programs I wrote. If you look at the newest version of the LISP (in the AutoLISP Archive) you will notice that I use COND statements to do the same job. This is tidier and much better coding practice Lee Thanks for the tip. Thats why I joined this site to learn more about LISP. I have used the cond in other routines but when I saw you using the if and progn I thought thats what I should have be doing so thats why I used them. I see now what you mean because I have now become strangely good at copy and paste. lol Thanks again for all the help Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 Thanks for the tip. Thats why I joined this site to learn more about LISP. I have used the cond in other routines but when I saw you using the if and progn I thought thats what I should have be doing so thats why I used them. I see now what you mean because I have now become strangely good at copy and paste. lol Thanks again for all the help As I say - I would not really use this LISP as a learning tool - as I wrote it a long time ago (original version dates back to September last year), and I was new to LISP back then. So the techniques used in the LISP are not really good programming practice. I rewrote some of it in the latest version (in the archive), but I am still not all that proud of it. Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 As I say - I would not really use this LISP as a learning tool - as I wrote it a long time ago (original version dates back to September last year), and I was new to LISP back then. So the techniques used in the LISP are not really good programming practice. I rewrote some of it in the latest version (in the archive), but I am still not all that proud of it. Well I'm looking at it now and I am impressed. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 Well I'm looking at it now and I am impressed. ..Thanks Quote Link to comment Share on other sites More sharing options...
mdbdesign Posted May 28, 2009 Share Posted May 28, 2009 :DLee, ask Brad where is dialog box:D:D:D:D:D Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 :DLee, ask Brad where is dialog box:D:D:D:D:D haha, yes Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 I'm the cmd line type not sure if want to learn that maybe one day Quote Link to comment Share on other sites More sharing options...
mdbdesign Posted May 28, 2009 Share Posted May 28, 2009 Just kidding. I am imperial guy too (and command line). Got to keep it hidden from my boss and take time to draw flanges:lol: Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 Just kidding. I am imperial guy too (and command line). Got to keep it hidden from my boss and take time to draw flanges:lol: So did you try out the routine. Is it ok for a first timer? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 Just kidding. I am imperial guy too (and command line). Got to keep it hidden from my boss and take time to draw flanges:lol: Just to point out - my original LISP can be very easily modified to be imperial Standards - All the variables are set at the top of the program, (obviously you may need to investigate to to which measurements relate to what - most is self-explanatory), but these can be changed to suit Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 Just to point out - my original LISP can be very easily modified to be imperial Standards - All the variables are set at the top of the program, (obviously you may need to investigate to to which measurements relate to what - most is self-explanatory), but these can be changed to suit Yeah. And I original start by modified your original. But then decided to do from scratch. I did however put your disclaimer in it. It made my laugh cause we have a running joke here about calling your mother. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 It made my laugh cause we have a running joke here about calling your mother. Calling my mother....? Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 Calling my mother....? oops sorry that disclaimer came for anothers lisp. Not sure why I thought it was your pipe lips sorry Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 28, 2009 Share Posted May 28, 2009 Hahaha, just saw the disclaimer - absolutely fantastic - eat your vegetables and call your mother Quote Link to comment Share on other sites More sharing options...
bradb Posted May 28, 2009 Author Share Posted May 28, 2009 Hahaha, just saw the disclaimer - absolutely fantastic - eat your vegetables and call your mother Don't forget don't drink and drive. I know I paid for it. 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.