(VL-BT) ERROR , NEED HELP

(VL-BT) ERROR , NEED HELP

Anonymous
Not applicable
760 Views
1 Reply
Message 1 of 2

(VL-BT) ERROR , NEED HELP

Anonymous
Not applicable

Hello everyone....

I need help on the following.....

The "1st PART" is a snip of File Selection of dwgs to be printed.

the "2nd PART" is the error I getting using the (vl-bt), is an undocumented function which is very useful to debug AutoLISP.

 

If a type at the autocad command prompt "!InfoDwgsList1", I get the correct DWG list result.

but because of the error, the function is canceled.

 

What is wrong? .... any help please.

 

 

===================================

1st PART

====================================

(defun SelectFiles ( / sl)
   (vl-bt)
   (arxload "R:/!AutoCAD 2015 Mains/DOSLib/doslib20X64")
   (setq InfoDwgsList nil)
   (setq InfoDwgsList1 (cdr (dos_getfilenav "Select DWGs Files to Print.." (getvar "dwgprefix") "dwg" 4096)))
   (princ (strcat "DWGs Selected: " InfoDwgsList1))
   (princ)
)

 

 

==================================

2nd part

==================================

Command: (selectfiles)
Backtrace:
[0.24] (VL-BT)
[1.20] (SELECTFILES) LAP+7
[2.15] (#<SUBR @000000002c3e50c0 -rts_top->)
[3.12] (#<SUBR @000000002c348700 veval-str-body> "(selectfiles)" T #<FILE internal>)
:CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)
:ARQ-SUBR-CALLBACK.3 (nil 0)
; error: bad argument type: stringp ("1373078 M-001.00 - 9 VER01.dwg" "1373078 EN-100.00 - 9 VER01.dwg")

 

 

 

 

0 Likes
761 Views
1 Reply
Reply (1)
Message 2 of 2

Jason.Piercey
Advisor
Advisor

Only quickly glancing, it appears you are passing a list, instead of a string, to the strcat function.

0 Likes