sketchucation logo sketchucation
    • Login
    1. Home
    2. mocathe1st
    3. Topics
    ⌛ Sale Ending | 30% Off Profile Builder 4 ends 30th September
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 30
    • Groups 1

    Topics

    • M

      Greenspace, developers of Demeter release new products

      Watching Ignoring Scheduled Pinned Locked Moved Extensions & Applications Discussions extensions
      1
      0 Votes
      1 Posts
      890 Views
      No one has replied
    • M

      Registering a Scrambled Extension

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      428 Views
      thomthomT
      In my case it appeared to load the .rbs file, but it wrapped everything into the SketchupExtension namespace.
    • M

      Getting the Current Date with SketchUp Ruby API

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      911 Views
      TIGT
      Built into core Ruby already... Time.now etc, see Ruby http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_time.html et al...
    • M

      Weird bug with WebDialog and Flash

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      780 Views
      V
      I've just noticed, that the problem still remains with the 'Enter' key. Though it works in IE, but it doesn't if it's opened via Sketchup web dialog. Any ideas?
    • M

      SQLite in SketchUp Ruby

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      17
      0 Votes
      17 Posts
      4k Views
      D
      you can set the format for the output, so for a webDialog you can use... html = %x(/usr/bin/sqlite3 -html /private/tmp/sp500-data.sqlite "SELECT * FROM companies;") or there's -csv -list -line -column...
    • M

      Loading a Material from SKM

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      885 Views
      F
      Even better: Found the defintions.load method that will load the model into the list of definitions which then loads the materials.
    • M

      WebDialog Javascript callback Maximum message size

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      2k Views
      C
      Be advised that execute_script is very buggy on Mac. It will mangle the string sent if it contains ";" or "," and probably other chars as well. Also "document." doesnt work.
    • M

      Comonent Attributes Not being saved

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      289 Views
      R
      After assigning the attributes to the definition, did you save out the definition (rather, an instance of it) to an external model?
    • M

      Entity.set_attribute infinite loop

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      663 Views
      M
      Hi Thanks for that solution, I've tried it and it works a treat. Its a bit hackish but it works so it'll do. Thanks again.
    • M

      [Plugin] Demeter - Energy Analysis in Sketchup

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      6k Views
      M
      Hi Rick, Thanks for your feedback and other help. I agree, the menu would be neater within a submenu especially when using many different plugins. We've just released an updated beta version of Demeter that does this. The overall folder structure has been improved and the plugin should now be compatible with your Organizer plugin. It is also now compatible with the Mac OS X version of Sketchup and has had various other improvements. The new version can be downloaded at:http://greenspaceresearch.com/demeter.html Thanks, Malcolm Murray
    • M

      Using default sketchup materials with Ruby API

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      2k Views
      S
      This code works for me: model = Sketchup.active_model materials=model.materials Adds a material as an in model material m = materials.add "Test Color" begin Returns nil if not successful, path if successful path=Sketchup.find_support_file "1.jpg","\Plugins\" # m.texture = "1.jpg" m.texture = path m.texture.size = 666 rescue UI.messagebox $!.message end
    • M

      WebDialog in MacOSX

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      805 Views
      T
      SketchUp on Windows uses IE for webdialogs (not FireFox, not Opera, etc.). Sketchup on the Mac only uses Safari for webdialogs. Are you saying that if IE is installed on the Mac, that SketchUp is using IE in preference over Safari? This is new news if this is so. And, a pain in the hiney for webdialog developers, because some of us (err, me!) don't have IE for Mac. I bought a Mac to distance myself away from IE and MS Office. Todd
    • M

      .rbs files not loading at all.

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      946 Views
      A
      Don't know, whether the "old" standard Ruby "require" is really needed for all scripts. If you do not need it at all, WHAT is Sketchup.require doing? Does it use the "old" "require"? If not you can think about replacing it dynamically: module Kernel def require *args Sketchup.require *args end end (not tested, maybe the asterisks are on wrong place) After that you can use the "old" require and get the behaviour of the Sketchup "require" azuby
    • M

      Two Web Dialogs Open Together

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      538 Views
      J
      Yes, it's possible. It sounds like you may have opened the dialog as a modal dialog.
    • M

      Finding a face's azimuth

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      2k Views
      R
      The problem is compounded by angles generally being measured counter-clockwise, while azimuth angles are measured clockwise. I think it would come down to determining the quadrant of the vector (by checking X and Y for +/- value), then adding the previous right-angle azimuth vector to the angle_between of it and the specified vector if vector.x>0 if vector.y>0 az = [0,1,0].angle_between(vector).radians else az = [1,0,0].angle_between(vector).radians+Math;;PI/2 end else if vector.y<0 az = [0,-1,0].angle_between(vector).radians+Math;;PI else az = [-1,0,0].angle_between(vector).radians+(3*Math;;PI/2) end The above example doesn't take into account cases where x or y equal zero, so you'll have to add that. It shouldn't be too difficult, though.
    • M

      Face width and height in 2d

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      972 Views
      R
      It's possible to use vectors to represent axes. The face.normal should be the Z axis, the X axis should be the intersection of a flat (XY) plane with the face plane, and the Y axis can be determined by the cross product of the X and Z axes. There's also a quicker way to do this after finding the Z axis (the face.normal): axes = face.normal.axes xAxis,yAxis,zAxis = axes However you do it, once you have the axis vectors, you can then either: test the X and Y axes against the points of the face to determine which are minimal and maximal, or use an axes transform to convert the vertex positions of the face to the world XYZ coordinates and then determine the minimal and maximal XY values.
    • 1 / 1