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

[Request] Sketchup.open_file and model history list menu #1018

Open
Fredosixx opened this issue Dec 6, 2024 · 3 comments
Open

[Request] Sketchup.open_file and model history list menu #1018

Fredosixx opened this issue Dec 6, 2024 · 3 comments

Comments

@Fredosixx
Copy link

Sketchup.file_open always add the model to the history of opened models in the UI (menu File).

It would be useful to have an option where the API method does not log the file to the history menu. For instance, FredoBatch processes files and may open many models in a row. In many cases, this can be temporary files which are then deleted.

With this option, plugins like FredoBatch would not mess up the history list.

@Fredosixx Fredosixx changed the title [Request] Sketchup.open_file and model history [Request] Sketchup.open_file and model history list menu Dec 6, 2024
@Eneroth3
Copy link

Eneroth3 commented Dec 7, 2024 via email

@thomthom
Copy link
Member

thomthom commented Dec 9, 2024

Semi-related, at the last Basecamp, Chaos Group presented their Ruby wrapper over the SketchUp C API: https://github.com/ChaosGroup/scriptup

You can use the SU C API in standalone Ruby. (In case you are doing batch processing outside of SketchUp)

@Fredosixx
Copy link
Author

Semi-related, at the last Basecamp, Chaos Group presented their Ruby wrapper over the SketchUp C API:

Interesting. This must be a huge work, and anyway very useful for many purposes, beyond batch processing, like setting attributes to objects without opening the model. Although the C Api can do that, it is much more comfortable to do it in Ruby. Indeed, it would be a plus if Trimble would provide it as part of the official API suite

FredoBatch itself does not care how the process is implemented, provided the top method is in Ruby. And it does not operate specifically on Sketchup files.

However, since there is an interactive mode where the user is prompted (to select cameras, objects, etc...), there are cases where FredoBatch needs to open the Sketchup file in the UI session.

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

3 participants