⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Help with WebDialogs

    5
    0 Szavazatok
    5 Hozzászólások
    215 Megtekintések
    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 Szavazatok
    3 Hozzászólások
    150 Megtekintések
    K
    Great! Thank you.
  • Expanding Cube concept

    9
    0 Szavazatok
    9 Hozzászólások
    782 Megtekintések
    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 Szavazatok
    24 Hozzászólások
    1k Megtekintések
    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 Szavazatok
    3 Hozzászólások
    153 Megtekintések
    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 Szavazatok
    24 Hozzászólások
    897 Megtekintések
    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 Szavazatok
    15 Hozzászólások
    3k Megtekintések
    thomthomT
    Thanks. I'll try that soon when I get the chance.
  • Help with shadow_info and SunRise

    3
    0 Szavazatok
    3 Hozzászólások
    181 Megtekintések
    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 Szavazatok
    12 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    Thanks Tavi.. dang it.. dat's a bummer... oh well then it's SQLite3
  • [Win] net/http

    4
    0 Szavazatok
    4 Hozzászólások
    219 Megtekintések
    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.
  • Advice : Developing Ruby extension for Sketchup (Windows)

    4
    0 Szavazatok
    4 Hozzászólások
    294 Megtekintések
    Dan RathbunD
    You have read the FAQ page I made? [Info] C/C++ Ruby extensions & SketchUp plugins
  • Understanding Variables

    3
    0 Szavazatok
    3 Hozzászólások
    190 Megtekintések
    A
    Okay, now I know!! And yeah at first my question made sense to me, but now it doesn't! Thanks
  • TextTag

    15
    0 Szavazatok
    15 Hozzászólások
    3k Megtekintések
    TIGT
    If you are using Layout you are better off doing your text in Layout. This is a pretty old tool! Try my 2dTools 2dText - it's much more flexible than this old thing... BUT the size is fixed height - you can make it sat 100mm and then make three copies scaled at x2 and x3 use layers called TEXT-100, TEXT-200 and TEXT-300 etc. Put copies on different layers and have only one layer on in a scene-view. Then you can switch the layers as needed so text size seems to varying. 2dText is a 'component' so making layered copies means you can edit one and they'll all change across the layers and the scaling will be kept too...
  • Another grouping a group issue?

    10
    0 Szavazatok
    10 Hozzászólások
    382 Megtekintések
    Dan RathbunD
    @tomot said: Interesting! I have 2 scripts, on replicates joists the other studs both use count. One script constantly gives me an '<' error in the console the other does not. ....very aggravating! Yep.. and same with: entities.add_instance(count, t) The word 'entities' is a method name. It often works OK, but is poor form. Using something like: grp_ents.add_instance(joist, tx_vec) is much better, and more understandable.
  • DC instance make unique

    22
    0 Szavazatok
    22 Hozzászólások
    857 Megtekintések
    Dan RathbunD
    @jolran said: However there is no "glue_to" method for groups in the API. Right.. and you should not use a Group, for the job of a ComponentInstance. Groups are best used for temporary editing both manual and in scripting. By collecting objects together into a Group, you can: move them from one edit context to another, protect them from being modified by crossing edges, apply a tranform to a set of objects all at once (where they move, scale or rotate all together.) I would say, that when you get a "set" of objects the way you want, and then wish to use that set multiple places in the model, it's best to then convert them into a ComponentInstance. Especially if your going use scripting, to manipulate them, or glue them to faces.
  • Geom.intersect_line_plane = point3d?

    5
    0 Szavazatok
    5 Hozzászólások
    279 Megtekintések
    Dan RathbunD
    @voljanko said: I can not set my browser (chrome) to show the comments. You are seeing the localized language version of the API page. Somehow you must try to set Chrome to English, so you can see the main English pages that have the comments. This is a known issue with the API Doc pages, and complaints have been logged with Google.
  • API redefinition required!

    9
    0 Szavazatok
    9 Hozzászólások
    558 Megtekintések
    T
    @tig said: Please don't use global $ variables unless you really have to Rats! I can't count how many times I have been reminded of that issue. My typical response: I use global's so I can verify the 3d point location in the Ruby console, I need this to verify any mistakes I may be making (which happens frequently !) when I'm developing a script which corresponds to 3d points on my gridded 1/4" notepad. It would be really nice if @ variables where able to display the same information in the Ruby console.
  • Deleting group.copy?

    8
    0 Szavazatok
    8 Hozzászólások
    300 Megtekintések
    L
    Yeah, that worked, and not having to explode my group fixed a lot of problems. Thank you!
  • Angle between two edges in a face?

    11
    0 Szavazatok
    11 Hozzászólások
    891 Megtekintések
    TIGT
    My code was a quick example to show that you could get the correct angles. Of course edges=face.edges can easily be replaced with edges=face.outer_loop.edges or we iterate through the loops to get their edges in turn... BUT if its for only one vertex it's then easy enough to find the two edges belonging to that vertex [and that face] and run similar code on them to get the angle between them, using the face normal and vectors cross comparison to trap for concave corner angles >180 degrees... remembering to trap for ==180.degrees, as well as < and >...
  • [Code] How do you compute weighted vertex normals?

    26
    0 Szavazatok
    26 Hozzászólások
    6k Megtekintések
    thomthomT
    Now I seemed to have corrected it. I had to ensure the vectors I used came in the same direction as the edge loop.

Advertisement