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

tableprint7.exe

1 REPLY 1
Reply
Message 1 of 2
Anonymous
888 Views, 1 Reply

tableprint7.exe

I am trying to use startapp to call tableprint7 but receive the warning:
"The text file selected is not a .txt file". This is the princ of what I
call with startapp: tableprint7 TEMP.CTB CTB.TXT.
- I have tried every possible combination of paths and filenames for the
new text file and for the existing ctb file. What am I doing wrong?

Of course - all of this would be unnecessary if we had an arx application
that would return a list of ctb\stb values if given a valid filename (hint
hint...)

Thanks Peter
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Peter,
I don't know why you're getting that message about " ... not a .txt
file", but I noticed tableprint.exe is touchy about filenames. Did you add
extra quotes in case your AutoCAD\Plot Styles path has a space in it like
"Program Files" or "Plot Styles"? Also, it *does* seem to be necessary
to put the exe file in the AutoCAD directory.
The following works for me.

(setq APPNAME "C:\\Program Files\\AutoCAD 2002\\tableprint7.exe")
(if (findfile APPNAME)
(if (setq SRCFILE (getfiled "Select CTB/STB file" "" "ctb;stb" 8))
(setq SRCFILE (strcat (chr 34) SRCFILE (chr 34)))
)
(alert (strcat "Tableprint7.exe not found."))
)
(if SRCFILE
(cond
((setq OUTFILE
(getfiled "Save Text File"
(strcat (vl-filename-base SRCFILE) ".txt") "txt" 1
)
)
(setq OUTFILE (strcat (chr 34) OUTFILE (chr 34))
ARGSTR (strcat APPNAME " " SRCFILE " " OUTFILE)
)
(startapp ARGSTR)
(princ (strcat "\nPlot style settings in " SRCFILE
"\n were written to file " OUTFILE "."
)
)
)
)
)

Joe

"Peter Ciganek" wrote in message
news:86E8A76223B63768A5352F9AB44525F9@in.WebX.maYIadrTaRb...
> I am trying to use startapp to call tableprint7 but receive the warning:
> "The text file selected is not a .txt file". This is the princ of what I
> call with startapp: tableprint7 TEMP.CTB CTB.TXT.
> - I have tried every possible combination of paths and filenames for the
> new text file and for the existing ctb file. What am I doing wrong?
>
> Of course - all of this would be unnecessary if we had an arx application
> that would return a list of ctb\stb values if given a valid filename (hint
> hint...)
>
> Thanks Peter
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost