-
Notifications
You must be signed in to change notification settings - Fork 10
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
enum SUModelUnits lacks a member for the new yards unit #442
Comments
This enum appear to be used by I don't understand why we have a function for that, since the same info is accessed via the options providers. The values for the options provider includes the new units (in the SDK package). I'm leaning towards deprecating |
(Thinking out loud...) Perhaps a fast courtesy shortcut getter requested for some internal use or making importers easier ? Or ... as in the units options provider documentation ...
... so I wonder if the
But I'd think that the members of this enumeration would be used to compare the value received from the units option provider ? ... or are they just integers and coders need to create their own constants to mimic the I'm think parity here. The Ruby API has constants for the units values to make code more readable. Shouldn't the C API also ? |
Yea, good point that there should be enums for the units. For the Ruby API these constants are under the But yea, not easy to locate, could benefit from a reference in the options provider documentation. |
SKOR-12926 |
@thomthom ... please note:
Your clue about where the Ruby API defined units constants, led me to find the C API units enums:
Yes the table of ordinal values at the bottom of the
I would say to deprecate the You could add a note to the So if you follow this advice for this issue, the bug and parity labels can be removed and replaced with a documentation label. ? |
SketchUp C API Issue
In 2020 Docs (not yet online)
"documentation/sketchup/model_8h.html"
:enum SUModelUnits
lacks a member for the new yards unit.The text was updated successfully, but these errors were encountered: