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

save the resolution #395

Open
tcurdt opened this issue Jun 4, 2023 · 7 comments
Open

save the resolution #395

tcurdt opened this issue Jun 4, 2023 · 7 comments

Comments

@tcurdt
Copy link

tcurdt commented Jun 4, 2023

First off:
hanks for CAMotics. It such a useful tool for me atm.

One thing that would be great to change:

Whenever I start CAMotics the resolution jumps backs to "Medium".
I always have to go into the settings and change it.

I would expect that when "Save" it would be stored across restarts.

Screenshot 2023-06-04 at 15 29 42

It would be great if the "Resolution" would actually be saved.

@tcurdt
Copy link
Author

tcurdt commented Aug 23, 2023

It seems the machine type is saved - but the resolution is not.
I was going through the code but didn't understand the cause for that difference.
Could you point into the right direction here?

@jcoffland
Copy link
Member

The resolution is saved with the project. If you save and reopen a project the resolution should stay the same. I idea is that the appropriate resolution is project dependent because projects exist at different scales. However, the settings Low, Medium, etc. are calculated relative to the projects maximum dimension.

@tcurdt
Copy link
Author

tcurdt commented Aug 24, 2023

Maybe to explain my workflow and there is a better way to go about this:

I write some gcode and open it up via command line CAMotics. On a macOS thats:

open -a CAMotics --args `pwd`/file.nc

On every open I get greeted with

Screenshot 2023-08-24 at 14 02 31

I guess if the gcode would reload when I change file.nc using a project could become viable.
Then storying it in the project would make sense. And I would have to always click on the dialog.

Is there a better way for my workflow that could solve this the way you thought about CAMotics?

@jcoffland
Copy link
Member

If you open a file in CAMotics and simulate it. You can change that file on disk and then just hit the reload button. It will resimulate with the updated file. One issue though, if you edit the file outside of the CAMotics editor, the changes will not be reflected in the CAMotics GCode editor.

If you're just manually editing the GCode, i.e. not generating it from some other program, you could just do you editing with in CAMotics. Double click on the file to open the GCode editor.

The third option is to write a project file with the resolution set to what you want.

@tcurdt
Copy link
Author

tcurdt commented Aug 24, 2023

One issue though, if you edit the file outside of the CAMotics editor, the changes will not be reflected in the CAMotics GCode editor.

That is the problem. I am generating the gcode file and would need a way to reload it from disk - somehow. Ideally automatic. Then I could just keep the project around with the correct settings.

@jcoffland
Copy link
Member

But the simulation will reflect the changes.

You can also create a project file. Save it. Then update your GCode file and reopen CAMotics using the project file.

@tcurdt
Copy link
Author

tcurdt commented Aug 24, 2023

reopen CAMotics using the project file

That would be pretty nice. But it seems to just ignore the request to re-open and keeps the old file. I would be nice if that would trigger a reload. Right now only after closing and then re-open or pressing "reload" the new file is being used.

At least it sounds like this could be a pretty simple change.

Nevertheless. I think it would be nice if the defaults where somehow configurable.
That would also allows to get rid of the "create project dialog.

Thanks for all your input BTW.

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

No branches or pull requests

2 participants