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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement