Delete All Points in Script

PurpleShirtedNerd shared this question 8 years ago
Answered

I hope this is not a duplicate post.


Total GeoGebra Noob with some programming background.


I would like to Delete All Points as part of a routine triggered from a button or input box. I have used both of these to run Script.

I would like to delete all existing points. I realize that this is as simple as right clicking in the Algebra window, but I really need this

to be part of another routine. I searched for this for quite a while with no success. I would rather do this with the GeoGebra Script, but I am open to using Java if necessary.


Thanks, PSN

Comments (4)

photo
1

Hi


Here is a file that is probably close to what you're looking for.


Raymond

https://ggbm.at/564027

photo
1

Thank you. I am making sense out of some of the JAVA but I suspect what I am looking for may be able to be done without nearly that amount of code.

What I am looking for is the equivalence of Right-Clicking on "Point" in the Algebra window and selecting delete (if only there were Excel type Macros available) In any instance, I just want every point deleted, not just the points created since opening the file. I suspect my answer is in the JAVA but I also want to use this in a classroom lesson so students with no coding experience can understand.


Thanks! I'll continue to work on it and look through your code.

photo
1

Maybe like this:


Raymond

https://ggbm.at/564031

photo
2

Beautiful!


Thank you so much!!!

© 2022 International GeoGebra Institute