OLE Order of Commands

OLE Order of Commands

Anonymous
Not applicable
172 Views
2 Replies
Message 1 of 3

OLE Order of Commands

Anonymous
Not applicable
I have a VB program that controls all of our plotting. I am trying to
add
a plotstamp to each drawing as it is plotted. The routine works except
for the
fact that AutoCAD proceeds with the plotting before the block is
inserted.
I have added DoEvents to no avail. If I put a message box in the
routine and
then wait to click the OK button, everything works. Anyone have any
suggestions?
It kind of defeats the purpose if someone has to sit there all day and
click OK.
I have thought about creating a routine that would search through a
block collection
until it found my block and then let the program proceed but that just
seems like it
would take too long on some drawings. Should I create a custom script
and then
call that script?

I really hate asking this question but my brain is fried and I cannot
think of where to
look.

Thanks,

Patrick Jones
Newcomb & Boyd
0 Likes
173 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi Patrick

Have you remembered the blockobj.UPDATE method??

Kind regards
Michael Christoffersen

Have you
"Patrick Jones" wrote in message
news:3A9541BE.6A2DC56B@newcomb-boyd.com...
> I have a VB program that controls all of our plotting. I am trying to
> add
> a plotstamp to each drawing as it is plotted. The routine works except
> for the
> fact that AutoCAD proceeds with the plotting before the block is
> inserted.
> I have added DoEvents to no avail. If I put a message box in the
> routine and
> then wait to click the OK button, everything works. Anyone have any
> suggestions?
> It kind of defeats the purpose if someone has to sit there all day and
> click OK.
> I have thought about creating a routine that would search through a
> block collection
> until it found my block and then let the program proceed but that just
> seems like it
> would take too long on some drawings. Should I create a custom script
> and then
> call that script?
>
> I really hate asking this question but my brain is fried and I cannot
> think of where to
> look.
>
> Thanks,
>
> Patrick Jones
> Newcomb & Boyd
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
No, I did not know about the update method!!!!!!!
That seems to be doing the trick. If I ever meet you,
I may just have to kiss you 🙂

Patrick

Michael Christoffersen wrote:

> Hi Patrick
>
> Have you remembered the blockobj.UPDATE method??
>
> Kind regards
> Michael Christoffersen
>
> Have you
> "Patrick Jones" wrote in message
> news:3A9541BE.6A2DC56B@newcomb-boyd.com...
> > I have a VB program that controls all of our plotting. I am trying to
> > add
> > a plotstamp to each drawing as it is plotted. The routine works except
> > for the
> > fact that AutoCAD proceeds with the plotting before the block is
> > inserted.
> > I have added DoEvents to no avail. If I put a message box in the
> > routine and
> > then wait to click the OK button, everything works. Anyone have any
> > suggestions?
> > It kind of defeats the purpose if someone has to sit there all day and
> > click OK.
> > I have thought about creating a routine that would search through a
> > block collection
> > until it found my block and then let the program proceed but that just
> > seems like it
> > would take too long on some drawings. Should I create a custom script
> > and then
> > call that script?
> >
> > I really hate asking this question but my brain is fried and I cannot
> > think of where to
> > look.
> >
> > Thanks,
> >
> > Patrick Jones
> > Newcomb & Boyd
> >
0 Likes