• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Growing a freeform line vector image

Visor

Member
Dear friends of the forum.
I have met some macros to manipulate freeforms vector images. What I wish is to make the line continue to grow according to the buttons that I put. These buttons I did not put code. The code will allow to follow the direction of the arrow. Supondo to be in short segments permitarn verify growth.
upload_2015-11-16_17-30-58.png

The idea is that the buttons can perform any irregular shape but even that has some form such as a cow or to even make our own signature rubric

I guess we need to know the coordinates of the last point or node continuously added to go with small segments direction according to the arrow buttons.
upload the file with the macro above
Thank you in advance for your help
 

Attachments

  • Imagen Vectorial.rar
    83.7 KB · Views: 2
You might be better off reading the coordinates into an array
then when you add a new point, add it to the array
delete the old shape and
make a new shape based on the coordinates stored in the array

I wrote a similar program in Excel a few years ago,
I will drag it out tonight and post it for you

I got stuck on implementing an undo function and never got back to it
 
"delete the old shape and make a new shape"

I would like to see this, then I guess that would not give the effect of growth of the line, but rather a new image. Perhaps it would have an effect of tremor as they grow image ... would have to see it.

If you notice, one of the buttons makes gains taken as a point, the last node of the previous image but not as continue
 
Dear Mr Hui
with respect to:
"I wrote a similar program in Excel a few years ago,
I will drag it out tonight and post it for you

I got stuck on implementing an undo function and never got back to it"

I hope you will not forget about this topic, please
When you have time, you can help me
Thanks you
 
In not sure what I am meant to be doing

You already have code to read the existing coordinates and load them into an array
So use that
Redim the array and add the new coordinates
Then delete the old shape and replot the new shape
 
honestly I do not know how, my eyes do not see what you see.
Anyway thanks for the suggestions
 
Back
Top