Require 'sketchup'
-
... why didn't they just make this part of the API?
-
@thomthom said:
... why didn't they just make this part of the API?
A good question for Scott and Tyler.
My guess is, it was faster for development for Scott to write the extensions in Ruby to "prove the concept." They may be thinking to "bake them into" the C side API code at a later date.
Likely this is low priority, which means it is always (and probably will remain,) at the bottom of the to do list. Bug fixes to the application code come first.
-
I think if you wished to have the DC extension OFF, but still have the extended methods defined, you could issue the following call at the Console:
Sketchup::require( 'DynamicComponents/ruby/dcutils' )
-
You could do this automatically by adding the above statement to the end of the Tools/dynamiccomponents.rb file (after the statement that registers the DC extension.)
IF the extension is OFF then the extra class methods would be defined.
IF the extension is ON, the file may get reloaded, but no harm should be done.
Advertisement