Bill Tillman Posted December 30, 2011 Posted December 30, 2011 My code is coming along slowly, very slowly... I have searched high and low and found many things similar to this but nothing that will tell me the simple method of changing the current linetype. I do not need to set linetype by layer, etc...I just want to the LISP program to quickly change the linetype to "dashed", draw a few lines and then change it back to continuous and keep on drawing. And advice would be appreciated. Quote
ReMark Posted December 30, 2011 Posted December 30, 2011 Christmas wishes had to be in by the 23rd of December Bill. You're kind of late. Nothing turned up via an Internet search for "linetype"+"change"+"lisp"? Quote
Bill Tillman Posted December 30, 2011 Author Posted December 30, 2011 ReMark, I know, I know...this is a very brutal thing to drudge through. I have done countless searches and all I end up with are how to change the linetype by layer or some other convuluted code that I'm sure is pertainent to some other task but not mine. I even have a copy of the AutoLISP Developer's Guide 2007, all 588 pdf pages of it. I searched for all occurances of Linetype and not a single one of them will tell me how to just change the linetype on the fly and then change it back. The program is progressing though. It reads the data from the Excel file and then starts drawing the lines of the assembly based on using the Excel data as dimensions and I even having adding in some of dimensions. So I can't say it's not worth the effort, but again, the trouble with becoming a programmer is learning the syntax and all the shortcuts, etc... Which is easy for those who've already covered the ground I'm on now. I should add too that most of the docs out there cover changing things once they've been selected. The process I'm creating here is to leave the operator out of the whole process. They simply select which model # they want from the Excel file (that part comes later) and then the LISP will draw most if not all of the catalog drawing needed for the files. Quote
ReMark Posted December 30, 2011 Posted December 30, 2011 I saw an entire PLC diagram drawn based upon an Excel spreadsheet. Once the procedure had started the user just sat back and watched the transformation. Just needed a soda and some popcorn to make it a great experience. Quote
Bill Tillman Posted December 30, 2011 Author Posted December 30, 2011 Yes, a completely automated process is what I'm after... and I found this on an obscure AutoDesk webpage (setvar 'CELTYPE "DASHED") Now on to the next problem..... Quote
ReMark Posted December 30, 2011 Posted December 30, 2011 Seek and ye shall find. Good going there Bill. Quote
Bill Tillman Posted December 31, 2011 Author Posted December 31, 2011 Well, Rome wasn't built in a day but I think I may finally have this. Many thanks to everyone for your input and patience. The code will now open the Excel file, read in all the cells and then just key in on two of them which represent the width and height for this assembly. Then with a single mouse click it will instantly draw all this on the screen at the point of insertion chosen. I still have lots to go on this but as I figure out more of it things start to move along. And I just figured out how to draw the slots at the bottom. Now to move on to the next problem in this thing. Quote
Dadgad Posted December 31, 2011 Posted December 31, 2011 Bill rules! Congratulations, that's smokin'! Which reminds me, isn't it about time to dust off all your old school artifacts, or at least that one that has served you the best, your lead holder? Seems like a little celebration is in order. Better safe than sorry, the last thing you want in your line of work is to be sidelined by GLAUCOMA! Quote
Bill Tillman Posted December 31, 2011 Author Posted December 31, 2011 Bill rules! Congratulations, that's smokin'!Which reminds me, isn't it about time to dust off all your old school artifacts, or at least that one that has served you the best, your lead holder? Seems like a little celebration is in order. Better safe than sorry, the last thing you want in your line of work is to be sidelined by GLAUCOMA! Yes indeed it was smokin' all night, until around 4:30 AM which is when I usually wake up so it was like I never slept. Something I plan to take care of right away so I can try and at least be awake for the midnight celebrating. The code now draws a complete set of shop drawings for this assembly. So when and if they call me next week, I will have my presentation ready. As for my old school habits, well, being out of work, or even when I am working seems there's always a chance someone will be standing there with this little white cup they want me to whiz in. So some of my old habits will just have to wait until retirement time comes along. If it weren't illegal, bad for your lungs and can get you terminated at work, I'd be blazing one up right now! I think I can officially call myself a LISP programmer now. Still lots to learn and that's what keeps your mind young. Quote
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.