🏒 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Google Sketchup and MySQL

    2
    0 Votes
    2 Posts
    478 Views
    Dan RathbunD
    The forum search should have brought up this topic, that's only a few days old: How to Connect Ruby to MySQL
  • GUI Toolkit: Shoes

    4
    0 Votes
    4 Posts
    594 Views
    Dan RathbunD
    Never saw that before.. it's kinda weird the way it's setup, but alot like MacRuby also. He seems to have put a Ruby interpreter inside it, so I don't know yet.. may take a huge rewrite to have it work in a normal Ruby way. And then there's the issue of communicating with the Sketchup app... he's seems to have gone out of his way to be sure each "Shoes" app is separate.
  • WebDialogBuilder class : brainstorming

    13
    0 Votes
    13 Posts
    340 Views
    Dan RathbunD
    no problem.. These classes are kinda deprecated.. (unless you had to make up a custom control, perhaps an image button...) because nowadays most browsers render controls on a webpage using the native OS's control set. You can be sure this is done in MSIE (for older versions,) by including a <META> tag in the <HEAD> section, thus: %(#8000BF)[<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">] And you'll get XP style controls, instead of the old ugly gray Win 3.x style controls. The tag will be ignored on OSX, as Safari would use Apple style controls.
  • Back_material of a face

    5
    0 Votes
    5 Posts
    170 Views
    K
    working meanwhile... thanks for the help.
  • 2D fillets and CNC

    46
    0 Votes
    46 Posts
    15k Views
    B
    exactly what I need !
  • What is the url for the google account sign in dialog?

    7
    0 Votes
    7 Posts
    415 Views
    Dan RathbunD
    IF you must, you can instantiate a UI::WebDialog object, that uses: def login_to_3D_warehouse() title = "3D Warehouse Login" key = "3D_Warehouse_Login" settings = Hash[ ;dialog_title, title, ;scrollable, false, ;preferences_key, key, ;min_height, 500, ;min_width, 600, ;height, 500, ;width, 600, ;left, 400, ;top, 300, ;resizable, true, ;mac_only_use_nswindow, true ] dlg = UI;;WebDialog.new( settings ) lang = Sketchup.get_locale[0..1] dlg.set_url("https://www.google.com/accounts/ServiceLogin?service=warehouse&passive=1209600&continue=http://sketchup.google.com/3dwarehouse/?hl%3D#{lang}&followup=http://sketchup.google.com/3dwarehouse/?hl%3D#{lang}") return dlg end # login method # elsewhere in your code; login_to_3D_warehouse().show()
  • Where is favorite Collections info being stored?

    5
    0 Votes
    5 Posts
    147 Views
    Dan RathbunD
    Well.. hmmm. unless you are an expert at the format of the Mac plist, and the Windows Registry, it's best to tell the user how to add the collection manually. Otherwise see if there is already a library extension by some other plugin author that your plugin could call. Check the Code Snippet list.. and or the Plugin Index in the "Plugins" forum.
  • WebDialogs using Chrome : any interest ?

    25
    0 Votes
    25 Posts
    1k Views
    JD HillJ
    I'm very sure of that, and it was not my intention to imply otherwise. It just sounded like you were keeping that possibility open, so I felt the need to speak up. If it's your intention that it be strictly opt-in though, the idea sounds nothing but good to me.
  • Output debug info externally under OSX?

    2
    0 Votes
    2 Posts
    96 Views
    Dan RathbunD
    How does the Logger from the standard library work on Mac?
  • Convert a String to Float

    4
    0 Votes
    4 Posts
    233 Views
    G
    @thomthom said: hcal.to_f doesn't modify hcal, it returns a float. So you need to write it like so: hcal = hcal.to_f thanks to both you... yes, both codes work nicely; i spent 3 hours to look for a solution, and i get 2 different, in a few minutes, on sketchucation... learning ruby on the internet is an exciting experience
  • Help with WebDialogs

    5
    0 Votes
    5 Posts
    162 Views
    Dan RathbunD
    @joshb said: I'm obviously new to ruby and appreciate all the pointers. Pay attention to the "Sticky" threads at the top of the forum. (They have the "S" in them.) This will get you going: Ruby Newbie's Guide to Getting Started
  • Hiding an Entity

    3
    0 Votes
    3 Posts
    111 Views
    K
    Great! Thank you.
  • Expanding Cube concept

    9
    0 Votes
    9 Posts
    567 Views
    DavidBoulderD
    @unknownuser said: I'm curious - Did this technique for designating zones ever get implemented in the OpenStudio plugin? I never got a chance to implement this, but I'm working on something similar for the next release, but was just a bit easier to code. It will take a loose selection of geometry (a clean building plan diagram) and will convert each surface into a Space object, and will extrude them to the requested height.) Another big change for the next release is that geometry is drawn in a space vs. a thermal zone. You then assign spaces to thermal zones. This allows you to design in more of an architectural view and then combine rooms into zones. Each space can also have space type assigned. Load and even constructions can then be assigned to a space type. It is a big change so I will add a lot of new video tutorials after the release.
  • Back face/material reverse

    24
    0 Votes
    24 Posts
    888 Views
    J
    @dan rathbun said: @jan_pamplona said: if we make a simple rectangle or a plane, i think the default is that the "face" facing you turns into a front color automatically, right!? NO... it does not have anything to do with "facing YOU". When you draw a face, it's normal (The direction the front surface is facing,) is always toward the negative axis. But the PushPull tool will reverse the face if it needs to do so. Thank you very much sir,, yeah, i remember now, im so dumb :,) it's just that i forgot those things because im drawing 2D plans and not noticing about the Push/Pull,thanks
  • Dimension issue

    3
    0 Votes
    3 Posts
    132 Views
    Wo3DanW
    @tig said: Unfortunately dimensions have scant access in the Ruby API... Thanks TIG, I was afraid this would be the answer.
  • Should have seen this coming - Where to write temp files?

    24
    0 Votes
    24 Posts
    604 Views
    Dan RathbunD
    Just noticed ANOTHER standard Ruby extension that bears on this subject. With a path to the local standard Ruby lib dir pushed into the $LOAD_PATH array, you add the following to your module: require('tmpdir.rb') This standard extension adds the class methods: Dir::tmpdir and Dir::mktmpdir If you read the file, you'll recognize the Dir::tmpdir method as the 'progenitor' of the edition in the Google 'webtextures_loader.rb' file. (Google "lifted" it, and stripped out the Win32 specific part.) So (above) when we talked about whether to rely on the WebTextures plugin, my advice is, to instead rely on the Standard Ruby library.
  • Enable error reporting for WebDialogs under OSX?

    15
    0 Votes
    15 Posts
    3k Views
    thomthomT
    Thanks. I'll try that soon when I get the chance.
  • Help with shadow_info and SunRise

    3
    0 Votes
    3 Posts
    126 Views
    JuantxoJ
    I thought I was doing something wrong. Then, I don't worry about this discrepancy. Thanks Tig
  • How to Connect Ruby to MySQL

    12
    0 Votes
    12 Posts
    2k Views
    Dan RathbunD
    Thanks Tavi.. dang it.. dat's a bummer... oh well then it's SQLite3
  • [Win] net/http

    4
    0 Votes
    4 Posts
    172 Views
    danielbowringD
    @dan rathbun said: ... your talking about one of the standard Ruby libraries. I answered a similar question here: http://forums.sketchucation.com/viewtopic.php?f=180&t=39648#p350463 Many thanks, worked great.

Advertisement