ads_queueexpr

ads_queueexpr

Anonymous
Not applicable
631 Views
4 Replies
Message 1 of 5

ads_queueexpr

Anonymous
Not applicable
I am having to use the ads_queueexpr() in R14 in order to execute the dwfout
command. How can I find out when autocad actually executes the dwfout
command? I need to do a few things after it is done. Thanks.
0 Likes
632 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi,

simply define a command in your application using acedDefun(), and
queue that command after you queued the dwfout command. Then return
from your current command back to AutoCAD, and wait for your
acedDefun'ed command to be called by AutoCAD. When that happens,
dwfout was done.

Best regards,
Markus Kraus

On Thu, 1 Nov 2001 09:02:56 -0800, "Karl Stranberg"
wrote:

>I am having to use the ads_queueexpr() in R14 in order to execute the dwfout
>command. How can I find out when autocad actually executes the dwfout
>command? I need to do a few things after it is done. Thanks.
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Markus,

But this way you could not find out if the command was done successfully...
Does ads_queueexpr() returns a bad status if dwfout fails?

Regards,
Fernando.

"Markus Kraus, Autodesk" wrote in message
news:[email protected]...
> Hi,
>
> simply define a command in your application using acedDefun(), and
> queue that command after you queued the dwfout command. Then return
> from your current command back to AutoCAD, and wait for your
> acedDefun'ed command to be called by AutoCAD. When that happens,
> dwfout was done.
>
> Best regards,
> Markus Kraus
>
> On Thu, 1 Nov 2001 09:02:56 -0800, "Karl Stranberg"
> wrote:
>
> >I am having to use the ads_queueexpr() in R14 in order to execute the
dwfout
> >command. How can I find out when autocad actually executes the dwfout
> >command? I need to do a few things after it is done. Thanks.
> >
>
0 Likes
Message 4 of 5

Anonymous
Not applicable
I don't know how you could, except by checking the date on the .dwf file if
you are controlling the path and file name. In my particular case I don't
need to know if it succeeded. But obviously it could be important in other
situations.

"Fernando Poinho Malard" wrote in message
news:[email protected]...
> Markus,
>
> But this way you could not find out if the command was done
successfully...
> Does ads_queueexpr() returns a bad status if dwfout fails?
>
> Regards,
> Fernando.
>
> "Markus Kraus, Autodesk" wrote in message
> news:[email protected]...
> > Hi,
> >
> > simply define a command in your application using acedDefun(), and
> > queue that command after you queued the dwfout command. Then return
> > from your current command back to AutoCAD, and wait for your
> > acedDefun'ed command to be called by AutoCAD. When that happens,
> > dwfout was done.
> >
> > Best regards,
> > Markus Kraus
> >
> > On Thu, 1 Nov 2001 09:02:56 -0800, "Karl Stranberg"
> > wrote:
> >
> > >I am having to use the ads_queueexpr() in R14 in order to execute the
> dwfout
> > >command. How can I find out when autocad actually executes the dwfout
> > >command? I need to do a few things after it is done. Thanks.
> > >
> >
>
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
Hi,

ads_queueexpr() does not offer a way to figure out whether the called
command/expression was executed sucessfully. (In this regard, it's as
"bad" as sending a string to the command line.)

In this particular case, you could check the timestamp of the dwf file
(as Karl mentioned already).

Best regards,
Markus

On Thu, 1 Nov 2001 09:46:44 -0800, "Fernando Poinho Malard"
wrote:

>Markus,
>
>But this way you could not find out if the command was done successfully...
>Does ads_queueexpr() returns a bad status if dwfout fails?
>
>Regards,
>Fernando.
>
0 Likes