Hi all,
We have a senario in which we want to first edit our DWG(through a plugin hosted in accoreconsole) file then plot it, we decided to plot with script rather than code (it is more clear and more documneted) so we first want to update dwg file(from .net code) and then based on loaded dwg file we will generate dynamically a plot script to plot. and the question is how we can send our plot script to accoreconsole?
we tried this
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(plotScript,true,false,false);
but nothing happens
and the plot srcipt is
FILEDIA
0
-PLOT
;Detailed plot configuration? [Yes/No] <No>:
No
;Enter a layout name or [?] <Model>:
;Enter a page setup name:
;Enter an output device name or [?] <None>:
DWG To PDF.pc3
;Enter file name <C:\Work\solids-Model.pdf>:
;Save changes to page setup? Or set shade plot quality? [Yes/No/Quality] <N>:
N
;Proceed with plot [Yes/No] <Y>:
Y
;Command:
FILEDIA
;;;Enter new value for FILEDIA <1>:
1
when we call this command in pluging hosted in AutoCAD (not accoreconsole) something wrong happens.
it seems this script is not working for this senario.
Thank you for your advice.
What is printed in the window when
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(plotScript,true,false,TRUE);