.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

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

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.

1 REPLY 1
Message 2 of 2
fenton.webb
in reply to: Anonymous

What is printed in the window when

 

Application.DocumentManager.MdiActiveDocument.SendStringToExecute(plotScript,true,false,TRUE);




Fenton Webb
AutoCAD Engineering
Autodesk

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost