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

Sketchup::Model # fix_errors #291

Open
DanRathbun opened this issue Jul 18, 2019 · 0 comments

Comments

@DanRathbun
Copy link

commented Jul 18, 2019

SketchUp Ruby API Feature Request

Please implement a Sketchup::Model#fix_errors instance method with a boolean silent argument.

If the arg is false it shows the validity check dialog, and runs silently if true.

ie, on WIndows the statement ...

Sketchup::send_action(21124)

... is the GUI equivalent of the user pressing the "Fix Problems" button on the Statistics panel of the Model Info dialog, which shows the Validity Check dialog.

However this is not cross-platform and should be replaced with calling ...

model.fix_errors(false)

You could process a block (if given) passing in an array of the error texts found, and return the result of the block.

If no block given then I suppose return the array of error messages.
(An empty array if no errors found.)


Reference public forum topic:
https://forums.sketchup.com/t/purge-unused-fix-problems/54302/

@thomthom Logged as SU-38058. ( 3 NOV 2017 )

The 2018 release saw the C API get the SUModelFixErrors function, but the Ruby API has not yet "gotten the same love".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.