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

Attribute Refreshes....

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
173 Views, 5 Replies

Attribute Refreshes....

Hi Gang,
Here's what I've got. I've got a modeless dialog box (actually a properties
window) that updates values within blocks of AutoCAD. It works fine. I can
type in the value and the screen shows the new value (after I highlight the
screen). That last part is actually the catch. The attribute doesn't
refresh until I actually click on the document space. Everything has been
changed, just no refresh.

Am I missing something obvious?

Thanks,
Nick

Environment: XP,VC6/sp5, ObjectARX 2002 but I'm writing for 2000i.
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Try acedUpdateDisplay().

"Nick Jacobs" wrote in message
news:B82C7EE6BC1B6E7188F8E23D68EE1ABC@in.WebX.maYIadrTaRb...
> Hi Gang,
> Here's what I've got. I've got a modeless dialog box (actually a
properties
> window) that updates values within blocks of AutoCAD. It works fine. I
can
> type in the value and the screen shows the new value (after I highlight
the
> screen). That last part is actually the catch. The attribute doesn't
> refresh until I actually click on the document space. Everything has been
> changed, just no refresh.
>
> Am I missing something obvious?
>
> Thanks,
> Nick
>
> Environment: XP,VC6/sp5, ObjectARX 2002 but I'm writing for 2000i.
>
>
>
Message 3 of 6
Anonymous
in reply to: Anonymous

Unforunately, it still works the same. I actually have to click on the
drawng background for the update to take effect.

Thanks for the help Art,
Nick


"Art Cooney" wrote in message
news:D0AA8E2EF416E4CA43D94CDA86EB5279@in.WebX.maYIadrTaRb...
> Try acedUpdateDisplay().
>
> "Nick Jacobs" wrote in message
> news:B82C7EE6BC1B6E7188F8E23D68EE1ABC@in.WebX.maYIadrTaRb...
> > Hi Gang,
> > Here's what I've got. I've got a modeless dialog box (actually a
> properties
> > window) that updates values within blocks of AutoCAD. It works fine. I
> can
> > type in the value and the screen shows the new value (after I highlight
> the
> > screen). That last part is actually the catch. The attribute doesn't
> > refresh until I actually click on the document space. Everything has
been
> > changed, just no refresh.
> >
> > Am I missing something obvious?
> >
> > Thanks,
> > Nick
> >
> > Environment: XP,VC6/sp5, ObjectARX 2002 but I'm writing for 2000i.
> >
> >
> >
>
>
Message 4 of 6
Anonymous
in reply to: Anonymous

Try doing this before calling acedUpdateDisplay():

CView* pView = acedGetAcadDwgView();
pView->PostMessage(WM_SETFOCUS, (WPARAM) GetActiveWindow(), 0);
pView->SetForegroundWindow();


"Nick Jacobs" wrote in message
news:F33F8D5486F9575096C776F6100D77D5@in.WebX.maYIadrTaRb...
> Unforunately, it still works the same. I actually have to click on the
> drawng background for the update to take effect.
>
> Thanks for the help Art,
> Nick
>
>
> "Art Cooney" wrote in message
> news:D0AA8E2EF416E4CA43D94CDA86EB5279@in.WebX.maYIadrTaRb...
> > Try acedUpdateDisplay().
> >
> > "Nick Jacobs" wrote in message
> > news:B82C7EE6BC1B6E7188F8E23D68EE1ABC@in.WebX.maYIadrTaRb...
> > > Hi Gang,
> > > Here's what I've got. I've got a modeless dialog box (actually a
> > properties
> > > window) that updates values within blocks of AutoCAD. It works fine.
I
> > can
> > > type in the value and the screen shows the new value (after I
highlight
> > the
> > > screen). That last part is actually the catch. The attribute doesn't
> > > refresh until I actually click on the document space. Everything has
> been
> > > changed, just no refresh.
> > >
> > > Am I missing something obvious?
> > >
> > > Thanks,
> > > Nick
> > >
> > > Environment: XP,VC6/sp5, ObjectARX 2002 but I'm writing for 2000i.
> > >
> > >
> > >
> >
> >
>
>
Message 5 of 6
Anonymous
in reply to: Anonymous

Tony,
While better, this still doesn't give me the results I'm looking for. There
is still a delay (on my computer upwards of maybe 5 seconds) before the
screen refreshes. I also tried it with a sendmessage instead of a post
message. I figured, what the heck, I don't mind waiting for the display to
be updated.

I'm hoping to simulate the same thing as the text edit refresh type of
options. On my computer, the text refreshes as soon as I step off of the
properties line for "Text"

Thanks for the help.

Nick



"Tony Tanzillo" wrote in message
news:D7DC2F7B786D245D3836B854EF5C99DE@in.WebX.maYIadrTaRb...
> Try doing this before calling acedUpdateDisplay():
>
> CView* pView = acedGetAcadDwgView();
> pView->PostMessage(WM_SETFOCUS, (WPARAM) GetActiveWindow(), 0);
> pView->SetForegroundWindow();
>
>
> "Nick Jacobs" wrote in message
> news:F33F8D5486F9575096C776F6100D77D5@in.WebX.maYIadrTaRb...
> > Unforunately, it still works the same. I actually have to click on the
> > drawng background for the update to take effect.
> >
> > Thanks for the help Art,
> > Nick
> >
> >
> > "Art Cooney" wrote in message
> > news:D0AA8E2EF416E4CA43D94CDA86EB5279@in.WebX.maYIadrTaRb...
> > > Try acedUpdateDisplay().
> > >
> > > "Nick Jacobs" wrote in message
> > > news:B82C7EE6BC1B6E7188F8E23D68EE1ABC@in.WebX.maYIadrTaRb...
> > > > Hi Gang,
> > > > Here's what I've got. I've got a modeless dialog box (actually a
> > > properties
> > > > window) that updates values within blocks of AutoCAD. It works
fine.
> I
> > > can
> > > > type in the value and the screen shows the new value (after I
> highlight
> > > the
> > > > screen). That last part is actually the catch. The attribute
doesn't
> > > > refresh until I actually click on the document space. Everything
has
> > been
> > > > changed, just no refresh.
> > > >
> > > > Am I missing something obvious?
> > > >
> > > > Thanks,
> > > > Nick
> > > >
> > > > Environment: XP,VC6/sp5, ObjectARX 2002 but I'm writing for 2000i.
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Message 6 of 6
Anonymous
in reply to: Anonymous

You might also try:

actrTransactionManager->queueForGraphicsFlush();
actrTransactionManager->flushGraphics();
acedUpdateDisplay();

"Nick Jacobs" wrote in message
news:3794890FBD5D2A6A38E56B52380AFBED@in.WebX.maYIadrTaRb...
> Tony,
> While better, this still doesn't give me the results I'm looking for.
There
> is still a delay (on my computer upwards of maybe 5 seconds) before the
> screen refreshes. I also tried it with a sendmessage instead of a post
> message. I figured, what the heck, I don't mind waiting for the display
to
> be updated.
>
> I'm hoping to simulate the same thing as the text edit refresh type of
> options. On my computer, the text refreshes as soon as I step off of the
> properties line for "Text"
>
> Thanks for the help.
>
> Nick
>
>
>
> "Tony Tanzillo" wrote in message
> news:D7DC2F7B786D245D3836B854EF5C99DE@in.WebX.maYIadrTaRb...
> > Try doing this before calling acedUpdateDisplay():
> >
> > CView* pView = acedGetAcadDwgView();
> > pView->PostMessage(WM_SETFOCUS, (WPARAM) GetActiveWindow(), 0);
> > pView->SetForegroundWindow();
> >
> >
> > "Nick Jacobs" wrote in message
> > news:F33F8D5486F9575096C776F6100D77D5@in.WebX.maYIadrTaRb...
> > > Unforunately, it still works the same. I actually have to click on
the
> > > drawng background for the update to take effect.
> > >
> > > Thanks for the help Art,
> > > Nick
> > >
> > >
> > > "Art Cooney" wrote in message
> > > news:D0AA8E2EF416E4CA43D94CDA86EB5279@in.WebX.maYIadrTaRb...
> > > > Try acedUpdateDisplay().
> > > >
> > > > "Nick Jacobs" wrote in message
> > > > news:B82C7EE6BC1B6E7188F8E23D68EE1ABC@in.WebX.maYIadrTaRb...
> > > > > Hi Gang,
> > > > > Here's what I've got. I've got a modeless dialog box (actually a
> > > > properties
> > > > > window) that updates values within blocks of AutoCAD. It works
> fine.
> > I
> > > > can
> > > > > type in the value and the screen shows the new value (after I
> > highlight
> > > > the
> > > > > screen). That last part is actually the catch. The attribute
> doesn't
> > > > > refresh until I actually click on the document space. Everything
> has
> > > been
> > > > > changed, just no refresh.
> > > > >
> > > > > Am I missing something obvious?
> > > > >
> > > > > Thanks,
> > > > > Nick
> > > > >
> > > > > Environment: XP,VC6/sp5, ObjectARX 2002 but I'm writing for
2000i.
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost