Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detect missing CTB with lisp

1 REPLY 1
Reply
Message 1 of 2
The_Caddie
358 Views, 1 Reply

Detect missing CTB with lisp

If I go and plot but my ctb is missing AutoCAD is able to detect this and prompt me with the warning PLOT STYLE MISSING (found in the plot dla box, under Plot style table pen assignments).

 

Can I get lisp to detect this also so that I can launch a vb.net dialog box?

1 REPLY 1
Message 2 of 2
phanaem
in reply to: The_Caddie

Try this

(findfile
  (strcat
    (vla-get-PrinterStyleSheetPath
      (vla-get-Files
     (vla-get-Preferences
      (vlax-get-acad-object)
    )
      )
    )
    "\\"
    (vla-get-StyleSheet
      (vla-get-ActiveLayout
     (vla-get-ActiveDocument
       (vlax-get-acad-object)
     )
      )
    )
  )
)

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost