sketchucation logo sketchucation
    • Login
    1. Home
    2. scottlininger
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 168
    • Groups 1

    Topics

    • scottliningerS

      Trying to hunt down elusive developers

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      220 Views
      thomthomT
    • scottliningerS

      New API Object Diagram

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      665 Views
      thomthomT
    • scottliningerS

      New code.google.com Attribute Reporting Example

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      202 Views
      No one has replied
    • scottliningerS

      Aliasing UI::messagebox ?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      434 Views
      Dan RathbunD
      @unknownuser said: ... I tried various flavors of the alias and alias_method keywords, but those don't seem to work with modules. I'm certain there's a way to do it, but I thought I'd ask here before diving into my Ruby books. Yes.. it's weird that alias doesn't work with modules. But this is even weirder. To alias modules, you instead use the object= method. Example aliasing of Sketchup module: (At Ruby Console type the following, where ">>" is resulting output.) Sketchup.class >> Module Sketchup.object_id >> 43353420 # remember this id... # now alias the module SU = Sketchup >> Sketchup SU.class >> Module SU.object_id >> 43353420 # it's the SAME exact id # test it... SU.version >> 7.1.6087 I would think that we must be careful what namespace the alias constant is declared within. If the above statement "SU = Skecthup" was declared inside a module, or a class, it would only be accessible within that namespace, or must be qualified to be accessed. For example, say you used that alias assignment within a module named "Configurator", in order to access the alias from outside, you'd need to qualify it with: Configurator::SU.methodcall However.. if you wished the alias to have global public access, you'd need to declare it outside ALL modules, in the objectspace. (Similar to typing it at the console.) BUT... what if for control purposes (ie, conditional loading,) you needed to have the statement inside a class or module? I think in this case, remember the Kernel.eval() method, and the fact that module Kernel is included in every object. That means that the containing module has it's own copy of eval. So you cannot call just eval (unqualified,) because you'd be calling the local module's copy of eval. To do it from within a module (or class,) you must qualify the call: if situation then Kernel.eval("SU = Sketchup"); Then the alias constant is global.
    • scottliningerS

      3d view feature on the 3d Warehouse

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      14
      0 Votes
      14 Posts
      983 Views
      D
      I was looking at doing something similar to this on our site.. There is an opensource flash library called 'Papervision 3D' which has support for collada files.. so in theory you could create a flash widget which would load a collada version of the 3d model and let you zoom and pan around it at will Obviously this would only work for smaller models, but that is the focus of our site. Maybe sometime soon!
    • scottliningerS

      Prince IO Sketchup Game Demo

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      42
      0 Votes
      42 Posts
      30k Views
      J
      Is there any way to fix this?
    • scottliningerS

      SketchUp RUBY API Wishlist [way of coding wishes, please]

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      107
      0 Votes
      107 Posts
      40k Views
      R
      Hello, I am new to google sketchup with ruby script. I have install google sketchup on my linux machine ubuntu 12.04. now able to start with ruby script. i already have ruby script. SO anyone can help to how can i run this script with google sketchup. Thanks
    • 1 / 1