🚨 Skimp | 25% Off until March 30 Buy Now

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • [Code] Geometry Creation from Excel worksheet data

    6
    0 Szavazatok
    6 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    @picpic020960 said: how to for write data to excel from ruby ? Try something simple like: def set_value(row,col,val) # @xl.activesheet.cells(row,col).value = val # end ### set_value() @picpic020960 said: other question : [Do you know if there] exists 'macro' recorder as in Excel ? Whatever exists in Excel, and has a built-in VisualBasic interface, can be accessed via WIN32OLE (from Ruby.) So, refer to the VisualBasic object model for Excel: MSDN: Object model (Excel VBA reference)
  • Add something to my *.rbs file

    6
    0 Szavazatok
    6 Hozzászólások
    2k Megtekintések
    TIGT
    So to recap my understanding. You hope[d] to somehow edit a copy of your main RB file, and from that make individually customized scrambled RBS files. This is actually possible. But your RBS files, put within your distributed RBZ archive cannot be 'signed' for use in >=v2016 [all loading-policies]... unless you actually submit each one of the RBZ files separately and on receipt then send it to your individual user. Here's an idea... RBZ contents as follows... MyLovelyTool.rb == the 'loader' MyLovelyTool == the subfolder containing... MyLovelyTool_main_code.rb == compiled by the signing process to RBS or RBE if limited to >=v2016 MyLovelyTool.hash == the signed file referencing all .rb/rbs/rbe/js.htm.html.css files in the RBZ AND MyLovelyTool_user_data.rbs == which you make from an RB on a per user basis - containing the individual details you want... It contains the same module/class set up as the main_code and simply sets the @@a or whatever. The main_code uses Sketchup;;require('MyLovely_user_data') as it initially loads, so that the customized details are used... This way the main IP relevant main)code can be RBS or RBE and incorporated in the signing hash, and the user_data can be somewhat obfuscated in your own RBS which is added to the signed RBZ later on... It will still be loaded by the signed file, while containing individual details. Be aware that RBS made by your old scrambler exe is readily crack-able, but probably sufficient obfuscation in your case - certainly better than a plain RB - which'd be easily editable. You can't make a securely encrypted RBE version without going through the signing/encryption process via the web-site. You could have course make mock RBZs for each user with a matching MyLovelyTool_user_data subfolder and submit those for signing/RBEing, then use just the RBE... adding it to the main RBZ before giving it to the user... BUT this route seems too much effort for little benefit... There must be an easier way to do this !
  • Create hole in entity using ruby api

    2
    0 Szavazatok
    2 Hozzászólások
    690 Megtekintések
    sdmitchS
    @arne2320 said: Hey guys I am currently trying to make a hole inside an entity with the ruby api, but can't find the rigth way to do it, I have tried it by creating a circle, placing it on top of the entity and then removing it but this doesn't seem to work so does anybody have an idea how i can do this? Thanks in advance When you place the circle on a face, it will create a new face inside the circle. If you remove the circle you remove this new face as well. So place the circle and remove the face inside instead of the circle. [image: eY4V_Hole.gif]
  • Launching ruby script from Java

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    thomthomT
    @elagym said: H Here is the content of api_dev.rb : The SketchUp Ruby API is only available from within SketchUp. It cannot be used in standalone builds of Ruby. If you need to read and write SKP files from your own application then there is the C API that can be used: https://extensions.sketchup.com/developer_center
  • Trimming a Solid Group

    12
    0 Szavazatok
    12 Hozzászólások
    2k Megtekintések
    medeekM
    When I use the truss plugin to create complex roofs I would like to be able to use the trim tool to trim some of the members (ie. a hip roof): https://3dwarehouse.sketchup.com/model.html?id=uade0f021-a386-402c-b784-087189478ecb
  • Laubwerk is hiring

    4
    0 Szavazatok
    4 Hozzászólások
    1k Megtekintések
    duanekempD
    Just catching this post here for the first time. Any updates on this news?
  • Plugin idea - Paste in placeS

    4
    0 Szavazatok
    4 Hozzászólások
    923 Megtekintések
    srxS
    And it deserves shortcut CTRL+SHIFT+V
  • Plugin to stop sticking geometry

    2
    0 Szavazatok
    2 Hozzászólások
    446 Megtekintések
    Dan RathbunD
    @caecarvalho said: After you create your model in SU, using groups and components, I could toggle this button and it would disable sticking geometry. This is not possible.
  • A ruby for a text list of materials for OSX users wanted

    36
    0 Szavazatok
    36 Hozzászólások
    3k Megtekintések
    romboutR
    Its been a while since this video, but how did you switched the color picker?
  • List of entities and organisation ?

    4
    0 Szavazatok
    4 Hozzászólások
    958 Megtekintések
    Dan RathbunD
    And this diagram is a bit out of date. (There are some missing classes, and perhaps changes since it was drawn back in the v7 and v8 days.) http://www.sketchup.com/intl/en/developer/docs/diagram.php Also,... @iltis said: For example : ArcCurve (arcs and circles) is a subclass of the Curve class, and an edge is a part of a random curve ... Implies an incorrect assumption. The SKP document object hierarchy (ie, the model database tree) is a wholly separate construct than the Ruby class hierarchy and relationships. For example, the Sketchup::Edge class is not a sub-class of the Sketchup::Curve class. Both, are descendants of the Sketchup::Entity class. Sketchup::Curve and Sketchup::ArcCurve objects are special collection classes that connect edges together, but are not themselves an actual "model element". Sketchup::Edge objects are an actual model element, and so are a sub-class of Sketchup::Drawingelement.
  • How to apply material to a "surface"

    3
    0 Szavazatok
    3 Hozzászólások
    766 Megtekintések
    PixeroP
    Thanks Thomthom. I already found it.
  • Pairing face problem

    9
    0 Szavazatok
    9 Hozzászólások
    979 Megtekintések
    hsmyersH
    @sdmitch said: What defines a good or bad pairing? No overlap when moved center to center. Where 'center' is center of paired face.
  • Problems with PickHelper

    14
    0 Szavazatok
    14 Hozzászólások
    1k Megtekintések
    thomthomT
    No worries - we all learn. Thanks for posting back your solution.
  • Starting a process in background using Ruby system()

    8
    0 Szavazatok
    8 Hozzászólások
    2k Megtekintések
    sdmitchS
    @driven said: some zip program require the .zip extension john Not a problem with 7-Zip. The -tzip sets the output format.
  • Rescue issue

    8
    0 Szavazatok
    8 Hozzászólások
    774 Megtekintések
    P
    It isn't that I wanted that "puts" to run immediately after the dialog is up. I put it after the show_modal to determine whether I reach that statement after the dialog is up or if I reach that statement after the dialog closes. I believe that I determined that I reached there only after the dialog closes. Therefore, an error raised in my callbacks should be caught by my rescue and it is not. I am currently working on a solution, suggested by you, to "Try putting another begin... rescue inside the callback block itself..." that is likely to solve my problem. I just wanted to understand why this didn't work and I haven't reached this understanding yet. Edit - that worked fine. My real problem is simply solved. I still don't understand why the original didn't work, but not worth any more of my time or your time. Thanks.
  • Closest face problem

    5
    0 Szavazatok
    5 Hozzászólások
    742 Megtekintések
    hsmyersH
    @sdmitch said: @hsmyers said: how about closest pair of points? Since you are only dealing with two objects, it shouldn't matter which is sel[0] or sel[1] To find the closest corners of two objects mod = Sketchup.active_model > . > . > . > UI.messagebox "Obj0 Cor#{m} to Obj1 Cor#{n} is #{Sketchup.format_length(md)}" > Thank you for the snippet! You are correct excepting that the tool in question will move one of the two objects such that the opposing face centers are touching plus or minus an offset. Sorry for the grossly incomplete spec My plan (very fluid and quite murky ) is take the first selection as the moving object and the second as the fixed object. I've some notion about non-parallel faces requiring ( optionally ) an rotational adjustment. However it's my goal to keep things as simple as possible. My usage is to stack components together to assemble the model much like one would in actuality. Hex nuts, lock washer on threaded rod etc. Additionally, there is the self-educational aspect of solving the which selection is on first This tool already has four options and looks to acquire one or more in the future. So it seems prudent to solve this now to make ready for the unforeseen. 'Sides any excuse to cut code!!
  • Save and restore cursor?

    3
    0 Szavazatok
    3 Hozzászólások
    614 Megtekintések
    hsmyersH
    @thomthom said: model.tools.push_tool(tool) model.tools.pop_tool http://www.sketchup.com/intl/en/developer/docs/ourdoc/tools#push_tool My thanks...and off to read the fine manual (err...what manual?) again
  • Load errors for several rubys

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    fredo6F
    @dermotmoconnor You were having a very old version of LibFredo6 (version 3.7, whereas current version is 6.9) and also RoundCorner. I don't know where, in 2016, you got them, if these are new installation. Anyway, that's why it did not work. Fredo
  • Attributes (auto updating)

    5
    0 Szavazatok
    5 Hozzászólások
    1k Megtekintések
    Dan RathbunD
    @thomthom said: @medeek said: Howevever, I can't seem to figure out how this attribute is automatically updating. I came across some code not too long ago that could explain this - but there is no documentation for this. SketchUp seem to apply transformations to Geom::Point3d and Geom::Vector3d object stored in attributes. This might be what you want some times - other times if you don't want it, store them as arrays. Which is basically what I said in the duplicate thread in the SketchUp forum, ... http://forums.sketchup.com/t/attributes-that-auto-update/27840 ... which has gone beyond the original questions.
  • Staircase builder - strange scaling behaviour - Help!

    4
    0 Szavazatok
    4 Hozzászólások
    1k Megtekintések
    D
    Staircase builder fixed! Fixed!

Advertisement