Button Macro Insights Needed

GOAL: Create a button macro to load the DASHED linetype to the active file.

Button macro insights on limitations and assistance in correcting the code below is appreciated.

^C^C-LINETYPE;L;DASHED;

ISSUE 1: The macro stalls at LIN file selection dialog box (the current selection is and is desired to be the DEFAULT.LIN file.)

ISSUE 2: If the DASHED linetype is already loaded, is there a method to code the button macro so it does not stall at the RELOAD Y/N prompt?


Thanks,

Clint

Comments

  • ALANH
    edited April 5
    Google "load linetype Autocad lisp" you will find so many examples.

    a hint (tblsearch "Ltype" "dashed")
  • You can use the EXPERT sysvar to turn off prompting if the linetype already exists.

    e.g.
    ^C^CEXPERT;3;-LINETYPE;L;DASHED;EXPERT;0;