Erase lines from VBA

Erase lines from VBA

Anonymous
Not applicable
486 Views
5 Replies
Message 1 of 6

Erase lines from VBA

Anonymous
Not applicable
I have a macro that draw lines on the screen. In case of mistakes I need to
delete all these lines and startover again. What is the code to attach to my
"ERASE" button to do just that?

Thx a lot.

PS : This macro must be repeatable.
0 Likes
487 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Can you use a selectionset and select all the "LINE" entities in the
drawing, and ss.erase them?

"Pierre Desmarais" wrote in message
news:[email protected]...
> I have a macro that draw lines on the screen. In case of mistakes I need
to
> delete all these lines and startover again. What is the code to attach to
my
> "ERASE" button to do just that?
>
> Thx a lot.
>
> PS : This macro must be repeatable.
>
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
And how would you select all the "LINE"?


"Chris Tryon" a écrit dans le message news:
[email protected]...
> Can you use a selectionset and select all the "LINE" entities in the
> drawing, and ss.erase them?
0 Likes
Message 4 of 6

Ed__Jobe
Mentor
Mentor
Have you tried using UNDO instead of ERASE? -Ed

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 6

Anonymous
Not applicable
After you create the lines, is you program finished or do you want the user
to be able to continue to do more stuff? If the program is finished, then
all the user has to do is "undo" and all the lines will be gone.

If you select all lines in the drawing, then you will do just that. Both
the lines you created with your program, and the ones that were in there
before you ran your program. Is that really what you want to do?

Jeff
--
Jeff Spannbauer
Civil Engineer II
Cannon Associates
www.cannonassoc.com
805-544-7407

"Pierre Desmarais" wrote in message
news:[email protected]...
> And how would you select all the "LINE"?
>
>
> "Chris Tryon" a écrit dans le message news:
> [email protected]...
> > Can you use a selectionset and select all the "LINE" entities in the
> > drawing, and ss.erase them?
>
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hi!

My program is not finished, it is actually drawing bracing for steel
structure. It happend that ounce the drawing is done you notice that the
distance between the axes is wrong, then you have to erase everything and
start over again.

Thx for your time.
0 Likes