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

ConnectTheDots error when using python 3.3+ #1

Open
Googliola opened this issue Mar 24, 2023 · 0 comments
Open

ConnectTheDots error when using python 3.3+ #1

Googliola opened this issue Mar 24, 2023 · 0 comments

Comments

@Googliola
Copy link

Unfortunately the script did not work for me (generated gear in Fusion -> exported as dxf -> converted to svg using convert.io -> inserted svg into Fusion360 -> ran your scipt -> nothing happened except that lines are not selectable afterwards :-( )

Anyway, before I could run the script, I had to change 2 occurrences of time.clock() to time.process_time()
Maybe time.perf_counter() is a better choice!?

Reference:
https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8

Instead of fiddling with your python script, I decided to take another path:
Follow this guide here. Despite being a hack, it's faster than the python script in some (most?) cases too:
https://forums.autodesk.com/t5/fusion-360-design-validate/svg-importing-with-broken-connections-and-lines/m-p/6634473/highlight/true#M78013

Addendum: Also tried these solutions, but they did not work for me either (because I use colors in my svg??). Maybe they do for your project.
https://graphicdesign.stackexchange.com/questions/46294/how-to-join-end-nodes-of-different-paths-in-inkscape
https://graphicdesign.stackexchange.com/questions/76534/automatically-merge-overlapping-nodes-in-inkscape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant