cwapi3d / cwapi3dpython

Cadwork Python Interface
https://docs.cadwork.com/projects/cwapi3dpython
MIT License
22 stars 7 forks source link

Version30(SP2024) get user points bug #183

Open Brunner246 opened 4 months ago

Brunner246 commented 4 months ago

Discussed in https://github.com/cwapi3d/cwapi3dpython/discussions/178

Originally posted by **Euclid-Bjoern** May 8, 2024 I recently downloaded the new cadwork version 30(SP2024), I just realized that my API doesn't work as usual anymore. Specifically the command utility_controller.get_user_points_with_count(). If the count is 1 I can't select any point. I prefer this command over utility_controller.get_user_point() because I can verify if a point was selected or not! Using points_with_count(1) returns an empty list if the user does right click or ESC, while get_user_point() returns the point (0,0,0). You can try simple code like this: ``` import cadwork as cw import utility_controller as uc points = uc.get_user_points_with_count(2) point = uc.get_user_points_with_count(1) ``` Points will let you select 2 points but point will always exit without selecting a point In previous versions I had no issue with this command Anyone know what's going on here, am I doing something wrong? thanks in advance
jspaquet commented 2 months ago

There is indeed an issue when calling get_user_point_with_count(1). When passing 2, I get a list of 2 points, with 1, I get a list of a single point that is the origin but not the selected point. I've logged the issue and it will be fixed as soon as possible.

Beltashazar commented 6 days ago

Hello,

I wanted to add that the function get_user_point() is also not working.

I am pretty interested in using these functions for a current project, is there a time line for fixing these?

Thanks! Shaun