Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Debug not working, found the problem #134

Open
jmcta opened this issue Dec 16, 2024 · 0 comments
Open

Visual Debug not working, found the problem #134

jmcta opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jmcta
Copy link

jmcta commented Dec 16, 2024

I love the plugin, but I was having issues getting Visual Debug working, and I tracked it down to this line of code:

pg = to_ocpgroup([obj], names=[name])
pg.name = name
objects.append(pg)
names.append(name)

I have version 3.0.8 of the ocp_tesselate library, and it has a return type of Tuple[OcpGroup, List[Any]] and the call to show_all fails understandably with 'tuple' object has no attribute 'name' on line 891 above.

Changing it to:

pg, objs = to_ocpgroup([obj], names=[name])  pg = to_ocpgroup([obj], names=[name]) 
pg.name = name 
objects.append(objs) 
names.append(name) 

With this change visual debugging starts working. The sketch objects are in the hierarchy and seem to be displayed correctly.

I'm a complete noobie with these libraries, only about 2 hours of playing with them to get an CADQuery environment stood up. It appears to be the same return type through the 3.0.x versions of ocp_tessellate.

I thought I would at least bring it up in case someone else is having issues getting visual debug up and running.

@bernhard-42 bernhard-42 added the bug Something isn't working label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants