<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to send a command with an event handler when someone  plots? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609665#M67754</link>
    <description>No, because the BeginPlotEventHandler fires while the PLOT or other publishing &lt;BR /&gt;
command is running.&lt;BR /&gt;
&lt;BR /&gt;
Does that make sense?&lt;BR /&gt;
&lt;BR /&gt;
What is the 'custom command' you want to run?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;DEANLYON&gt; wrote in message news:6310931@discussion.autodesk.com...&lt;BR /&gt;
I have tried using the event handler BeginPlotEventHandler and &lt;BR /&gt;
SendStringToExecute to fire off a custom command before the plot executes but &lt;BR /&gt;
the command echoes after the plot is done. Is it possible to send a command &lt;BR /&gt;
while the plot dialog is up? Or is re-defuning the plot command the better &lt;BR /&gt;
option to get the command fired just before the plot dialog opens?&lt;BR /&gt;
&lt;BR /&gt;
Edited by: DeanLyon on Dec 31, 2009 6:45 AM&lt;/DEANLYON&gt;</description>
    <pubDate>Fri, 01 Jan 2010 05:11:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-01T05:11:57Z</dc:date>
    <item>
      <title>Is it possible to send a command with an event handler when someone plots?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609664#M67753</link>
      <description>I have tried using the event handler BeginPlotEventHandler and SendStringToExecute to fire off a custom command before the plot executes but the command echoes after the plot is done. Is it possible to send a command while the plot dialog is up? Or is re-defuning the plot command the better option to get the command fired just before the plot dialog opens?

Edited by: DeanLyon on Dec 31, 2009 6:45 AM</description>
      <pubDate>Thu, 31 Dec 2009 14:45:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609664#M67753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-31T14:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send a command with an event handler when someone  plots?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609665#M67754</link>
      <description>No, because the BeginPlotEventHandler fires while the PLOT or other publishing &lt;BR /&gt;
command is running.&lt;BR /&gt;
&lt;BR /&gt;
Does that make sense?&lt;BR /&gt;
&lt;BR /&gt;
What is the 'custom command' you want to run?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;DEANLYON&gt; wrote in message news:6310931@discussion.autodesk.com...&lt;BR /&gt;
I have tried using the event handler BeginPlotEventHandler and &lt;BR /&gt;
SendStringToExecute to fire off a custom command before the plot executes but &lt;BR /&gt;
the command echoes after the plot is done. Is it possible to send a command &lt;BR /&gt;
while the plot dialog is up? Or is re-defuning the plot command the better &lt;BR /&gt;
option to get the command fired just before the plot dialog opens?&lt;BR /&gt;
&lt;BR /&gt;
Edited by: DeanLyon on Dec 31, 2009 6:45 AM&lt;/DEANLYON&gt;</description>
      <pubDate>Fri, 01 Jan 2010 05:11:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609665#M67754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-01T05:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send a command with an event handler when someone plots?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609666#M67755</link>
      <description>Yes, that makes sense.  I will have to redefine Plot to get the functionality I wish.</description>
      <pubDate>Mon, 04 Jan 2010 13:42:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609666#M67755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-04T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send a command with an event handler when someone plots?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609667#M67756</link>
      <description>I assume you are talking on PlotReactorManager's events, such as Begin(End)Plot/Document/Page...&lt;BR /&gt;
&lt;BR /&gt;
As Tony pointed out, you cannot run another command (by "SendStringToExecute()") because of "Plot" command being executed. However, it does not mean you cannot do something in the event handler with your code. Just do not call SendStringToExecute() for a command, built-in, or your "CommandMethod" defined command.&lt;BR /&gt;
&lt;BR /&gt;
Depending what you want to do, writing some code in the event handlers may be much more simpler than defining your own "Plot" command. For example, I use BeginPlot/Document to keep track of plotting work done from AutoCAD, including user who does the plotting, plotter name where the plotting is done, plotting paper size and copies... All the tracking data go to a database. There is more you can do obviously.</description>
      <pubDate>Mon, 04 Jan 2010 14:47:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609667#M67756</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-01-04T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to send a command with an event handler when someone  plots?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609668#M67757</link>
      <description>I am facing a similar problem. Hope it is alright to come in at this point.&lt;BR /&gt;
My event handler updates a property of some Entity objects. I want to see this update shown on the display. However, it does not happen unless I click on the drawing (drawing). If I use SendStringToExceute to force a regen, will it work? &lt;BR /&gt;
&lt;BR /&gt;
Thanks, KH</description>
      <pubDate>Fri, 26 Mar 2010 10:24:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-to-send-a-command-with-an-event-handler-when/m-p/2609668#M67757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-26T10:24:14Z</dc:date>
    </item>
  </channel>
</rss>

