sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Require 'sketchup'

    Scheduled Pinned Locked Moved Developers' Forum
    24 Posts 5 Posters 1.6k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      ... why didn't they just make this part of the API? ❓

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        @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'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          @Jim

          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' )

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            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.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement