Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
I did a post yesterday about this code, but I got it to work so now I have a different problem. I get an "error: bad function:" after I run it. What would cause the error? See code below. Thanks!
(defun c:plsize() (vla-get-canonicalmedianame (vla-item (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object))) (getvar 'ctab)) ) ) (DEFUN C:APDF () (SETQ A (C:PLSIZE) ) (COND ((EQUAL A "ANSI_full_bleed_A_(8.50_x_11.00_Inches)") ( (C:APPDF) )) ((EQUAL A "ANSI_full_bleed_A_(11.00_x_8.50_Inches)") ( (C:LAPDF) )) ((EQUAL A "ANSI_expand_B_(17.00_x_11.00_Inches)") ( (C:BPDF) )) ((EQUAL A "ANSI_expand_C_(22.00_x_17.00_Inches)") ( (C:CPDF) )) ((EQUAL A "ANSI_expand_D_(34.00_x_22.00_Inches)") ( (C:LPDF) )) (t((ALERT "NO LAYOUTS DETECTED"))) ) )
Solved! Go to Solution.