VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parabola Shows up after 2nd click (VBA Userform)

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
6321 Views, 2 Replies

Parabola Shows up after 2nd click (VBA Userform)

Hi,

i have a userform which draws parabola in 2 selected points,

hiding userform after i click draw and loop starts drawing, when it finishes loop userform shows up again,

but drawing not showing up until i click draw button again (2nd time). (2nd parabola not seen until 3rd click)

 

i try to use delay and doevents command but it didn t work.

 

Any suggestions? Thank you.

 

 

2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
in reply to: Anonymous

Hi,

 

welcome @Anonymous.autodesk.com!

 

>> but drawing not showing up until i click draw button again (2nd time)

Have you done a REGEN at the end of your first drawing function?

AutoCAD does not refresh the screen every time out of performance reasons, so when modal dialogs are open you have to do your own steps to get the display updated.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 3
Anonymous
in reply to: Alfred.NESWADBA

Thank you,

after the loop, i add

 

ThisDrawing.Regen acActiveViewport

 

worked for me.

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report