Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

send a plot script from a .net ObjectCRX plugin to accoreconsole to run?

$
0
0

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.


Viewing all articles
Browse latest Browse all 14319

Trending Articles