Author Topic: 'PLine' There HAS to be a better way...  (Read 3328 times)

0 Members and 1 Guest are viewing this topic.

craigr

  • Guest
'PLine' There HAS to be a better way...
« on: February 04, 2009, 04:20:13 PM »
Believe it or not, we only use 2 widths of PLines.

One of my first macros that I ever wrote was to start the PLine command and set the width to .03 -

^C^C_osnap;off;Snap;on;_-linetype;s;continuous;;celtscale;1;_z;ex;_pline;11.63,1.14;w;.03;;12.7,1.14;;_erase;12,1.14;;z;pre;_pline  

Basically it makes Pline in some obscure place to the widths that I want then erases that line, then asks for my starting point of the PLine I want to keep.

This is probably pretty sloppy by you folks standards but it USUALLY works fine. The problem is that it sometimes 'craps' out halfway thru.

What I am trying to achive is to draw a PLine with the width already set to .03 or .02 without having to manually change the width each time. - Have an Icon for .02 & .03, click on it and go!

Is there an easier way that won't 'crap out'?

craigr

ronjonp

  • Needs a day job
  • Posts: 7535
Re: 'PLine' There HAS to be a better way...
« Reply #1 on: February 04, 2009, 04:23:22 PM »
Can't you just add (setvar 'plinewid 0.03) ?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

T.Willey

  • Needs a day job
  • Posts: 5251
Re: 'PLine' There HAS to be a better way...
« Reply #2 on: February 04, 2009, 04:27:35 PM »
Not in LT Ron, but that can be called as a command ' plinewid ', and then just jump into the pline command.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

ronjonp

  • Needs a day job
  • Posts: 7535
Re: 'PLine' There HAS to be a better way...
« Reply #3 on: February 04, 2009, 04:29:14 PM »
Not in LT Ron, but that can be called as a command ' plinewid ', and then just jump into the pline command.

No setvars in LT?......ouch

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

craigr

  • Guest
Re: 'PLine' There HAS to be a better way...
« Reply #4 on: February 04, 2009, 04:29:59 PM »
Can't you just add (setvar 'plinewid 0.03) ?

Here's what I wrote -

^C^C_setvar;plinewid;.03;Pline

It worked Great!!

Thanks you.

ronjonp

  • Needs a day job
  • Posts: 7535
Re: 'PLine' There HAS to be a better way...
« Reply #5 on: February 04, 2009, 04:37:57 PM »
Can't you just add (setvar 'plinewid 0.03) ?

Here's what I wrote -

^C^C_setvar;plinewid;.03;Pline

It worked Great!!

Thanks you.

Glad to help :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

craigr

  • Guest
Re: 'PLine' There HAS to be a better way...
« Reply #6 on: February 04, 2009, 04:44:27 PM »
Since I have been 'self taught' - with MUCH help from you folks, I am sure that there are MANY variables, settings & methods of doing things that I have yet to discover.

I appreciate all of the help you folks give and I even try to help the few times someone doesn't know something that I do. :)

I have also been cruising Kate's blog and learn quite a bit about things from there.

Thanks again,

craigr

sinc

  • Guest
Re: 'PLine' There HAS to be a better way...
« Reply #7 on: February 04, 2009, 05:15:00 PM »
Believe it or not, we only use 2 widths of PLines.

That means you use one more than us.   :-)

All ours are set to Width=0. 

deegeecees

  • Guest
Re: 'PLine' There HAS to be a better way...
« Reply #8 on: February 05, 2009, 10:29:36 AM »
You could conceivably draw all your plines at any width, but keep them on separate layers. Then just use qselect.