TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: CADaver on July 14, 2005, 08:20:44 AM

Title: Linetype selection dialog box?
Post by: CADaver on July 14, 2005, 08:20:44 AM
Okay I know that ACAD_COLORDLG will "pop" the color selection dialog, but what "pops" the linetype selection box?
Title: Linetype selection dialog box?
Post by: CAB on July 14, 2005, 08:59:05 AM
Code: [Select]
 (initdia)
  (command "linetype")
Title: Linetype selection dialog box?
Post by: CADaver on July 14, 2005, 12:02:08 PM
Thanks Charles, but I don't think that's quite what I want.  Maybe I should explain it a little better.

I can set a variable to a color number by:
Code: [Select]
(setq clr (acad_colordlg 2))  Then use that "CLR" elsewhere.  What I want is to collect the linetype selected from the list and save it to a variable in the same way.  I've played with a couple of things and can't seem to get a grip on it.
Title: Linetype selection dialog box?
Post by: CAB on July 14, 2005, 12:34:35 PM
Found this
http://tinyurl.com/ct9ax
BUT, you must double click your choice in the dialog before clicking OK

And this
Quote
Tony Tanzillo   Dec 2 1998, 3:00 am  

There's no acad_colordlg() equivalent for the linetype
dialog (we've requested this so many times that I've long
since given up on ever seeing it).


What you can do, is pull the Select Linetype dialog box
out of DDCHPROP.LSP/DCL, but this isn't the same as the
Linetype dialog that's used by the linetype command.
Title: Linetype selection dialog box?
Post by: CADaver on July 14, 2005, 03:57:08 PM
Thanks for the Google link that'll work for me.  Tony T. gave me the same tip several years ago, I was just hoping it had been picked up by now with something internal.