Glen1980 Posted April 17, 2015 Share Posted April 17, 2015 ^C^C_plinewid;25;pline;/plinewid;0; I might be onto a looser here but I am looking for a way of drawing a poly line of 25 units wide then resetting the polyline width to 0. This is for LT so macro's only please. The above macro does set the width and lets me draw my polyline once I finish the line the macro doesn't continue to reset the polyline widths. Is it even possible to this in a single macro? Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 17, 2015 Share Posted April 17, 2015 One polyline segment or more than one? Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 Sorry ReMark, have been at lunch. Sometimes one segment sometimes 2. It's for under kitchen wall unit lighting. Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 17, 2015 Share Posted April 17, 2015 Have you given any consideration to an alternate approach? For example, how about a macro that draws a polyline of a specified width without changing the changing the global PLINEWID value? Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 No, I thought that would produce a pointed line rather than a solid rectangle. Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 17, 2015 Share Posted April 17, 2015 (edited) Hmmm......I was thinking of it more like a temporary override. (macro removed as it wasn't a true diesel macro; sorry about that folks) Edited April 17, 2015 by ReMark Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 Sorry ReMark, that's too LISPy for me these days. I've moved company and am back on LT now. Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 17, 2015 Share Posted April 17, 2015 (edited) Look again Glen...it's a diesel macro. I was wrong. Don't look. Edited April 17, 2015 by ReMark Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 Hang on, I ran that from my toolpallate and it said Command: (setq LISP command is not available. Command: pwid Unknown command "PWID". Press F1 for help. Command: (getvar LISP command is not available. Command: "plinewid")) Unknown command ""PLINEWID"))". Press F1 for help. Will try from the ribbon. Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 Nope not working. I've added it to the cui as a new command. Is there something I'm missing/not doing correctly to use Diesel programmes within LT? Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 17, 2015 Share Posted April 17, 2015 My bad then. I really did think it was a diesel macro. Now I'm not so sure given what you posted above. My apologies. I'll continue to research it. In the meantime maybe someone will come along and save me from myself. LoL Quote Link to comment Share on other sites More sharing options...
steven-g Posted April 17, 2015 Share Posted April 17, 2015 ReMark that is definitely LISP, diesel has things like $M=$(getvar,plinewid) in it. Though I do believe that in Full Autocad diesel and LISP can be mixed into a macro. The problem with a macro is when it starts a command you can't just exit out after an arbitrary amount of points or it just cancels the rest of the macro. This is a bit long winded but as it stands it will allow you to draw a polyline up to 6 segments in length, and you can cancel out after 1 or 2 or 3 etc ^C^C^C_pl;\\;_pe;l;w;25;;_pl; \;_pe;l;w;25;;selectsimilar;l;;_m;0,0;0,0;_pe;l;j;p;;;_pl; \;_pe;l;w;25;;selectsimilar;l;;_m;0,0;0,0;_pe;l;j;p;;;_pl; \;_pe;l;w;25;;selectsimilar;l;;_m;0,0;0,0;_pe;l;j;p;;;_pl; \;_pe;l;w;25;;selectsimilar;l;;_m;0,0;0,0;_pe;l;j;p;;;_pl; \;_pe;l;w;25;;selectsimilar;l;;_m;0,0;0,0;_pe;l;j;p;;; Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 Thanks anyway mate. You're still at 499:1 on the could help me:couldn't help me score sheet! Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 Thank you Steven that one works perfectly. It looks simple now you have done it. I could never work out what the last command was really for, I always used previous and though last to be a bit limited. Are there any online resources you can recommend to learn diesel? Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 17, 2015 Share Posted April 17, 2015 Saved by steven. Yeah! Now I can climb back into my hidey hole. Quote Link to comment Share on other sites More sharing options...
steven-g Posted April 17, 2015 Share Posted April 17, 2015 ReMark don't even think of hiding we'd all be lost without you, Glen I'll try and dig out a list of some of the sites I regularly find myself looking at, just give me a couple of hours. Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 17, 2015 Author Share Posted April 17, 2015 No rush Steven, it's 5-to-going home time! Quote Link to comment Share on other sites More sharing options...
steven-g Posted April 17, 2015 Share Posted April 17, 2015 Yeah it was 5 past feeding time here, these are a few good resources that I regularly look at plus the Autocad help files http://www.fourmilab.ch/diesel/ http://www.upfrontezine.com/tailor/tailor17.htm http://www.crlf.de/Dokumente/Diesel/Diesel.html http://cadingandcoding.blogspot.be/search/label/DIESEL Quote Link to comment Share on other sites More sharing options...
Glen1980 Posted April 20, 2015 Author Share Posted April 20, 2015 Thanks Steven. Quote Link to comment Share on other sites More sharing options...
steven-g Posted April 21, 2015 Share Posted April 21, 2015 You're welcome, I was pretty sure you asked another question yesterday, but I can't find it anymore, the answer is yes it can be done (or maybe it wasn't you!) 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.