ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • [Plugin] MAJ Door-Window Cutter

    2
    0 Votes
    2 Posts
    5k Views
    D
    Others are publishing the plugins in the plugins topic... https://sketchucation.com/forums/viewforum.php?f=323
  • REQUEST: Comp & groups tranform dialog box

    5
    0 Votes
    5 Posts
    5k Views
    PixeroP
    This plugin by thomthom kind of does it. https://extensions.sketchup.com/extension/1356b8f5-54c3-4df9-a6ed-28466ff41ede/transformation-inspector
  • Namespace in Multiple .rb Files

    5
    0 Votes
    5 Posts
    5k Views
    B
    @pixero said: If you temporarily comment out the line: unless file_loaded?(FILE) you can run the script again without restarting SU but you will get a new plugin menu entry for every time you run it. I had been loading the script from the console, then created a menu entry to do just that (from your How to Debug thread), but naively assumed it would reload any required files. Added another menu entry for the file in question and all is good...
  • Spiral algorithms

    2
    0 Votes
    2 Posts
    6k Views
    pilouP
    Some helix here : http://www.drawmetal.com
  • Inverse Selection - where is it?

    32
    0 Votes
    32 Posts
    41k Views
    T
    And 10 thousand years later... thank you, TIG!! It seems so unbeliavable that this feature wasn't available native until recently...
  • Delete and update add_note don't work

    6
    0 Votes
    6 Posts
    6k Views
    Dan RathbunD
    Just tested Sketchup::Text#set_text on SU2020 and it (as Dezmo says) does not display the change until the view is redrawn. So Sketchup.active_model.active_view.invalidate is necessary to see the change. I'll open a documentation issue for this "quirk".
  • Wrong distance and position of exploded dynamic component

    2
    0 Votes
    2 Posts
    4k Views
    Dan RathbunD
    The result looks good. What were you expecting to be different ?
  • How can I use "createPopupMenu" to create a right click Menu

    6
    0 Votes
    6 Posts
    6k Views
    Dan RathbunD
    @season_x said: I think Right - click menus are more important than toolbars and shortcut key. Doug Olivier (formerly a Trimble employee) is working on a popup button matrix called GhostMenu: There is a beta version available to test. https://app.ghost.menu/ It uses a keyboard shortcut to popup the GhostMenu. (But I cobbled up a little script to insert a command for GhostMenu into the top of SketchUp's context menu.)
  • Use Ruby To Apply Materials to Spacific Layers

    24
    0 Votes
    24 Posts
    10k Views
    A
    Man I thought python and Dynamo were hard. I even had a go at lisp but for some reason I cant get my head a round ruby. I like the code above but want to use the clean code but also just add in the layer names and leave the other ones alone. It seams that when I run this it converts all the layers in the model to Default and then the layer color had to be the same as the material name. I like the hash option but cant seem to get it to run on transparent materials and it only paints 1 side. any suggestions P.S. I am bringing in a dwg (exported from Revit) with 20 or so layers and want to put all the layers to 1 color but windows I want them to be on Translucent Glass Gray F.E. all layers to color 123_White except 0_EX_Glazing it needs to be on Translucent Glass Gray Some of the issues the import comes in as 1 group (with layers in the group) some of the groups come in the main group with groups within groups (doors and Door windows) Objects come in with a material not defined (<auto1>)so a generic material must be placed on all the objects for the script to have a chance. Thanks in advance
  • Close a WebDialog, THEN execute ruby code?

    11
    0 Votes
    11 Posts
    10k Views
    M
    I did some workaround on this behavior by adding an event listener on the dialog box via JS. This way the callback will be triggered. window.addEventListener("beforeunload", function (e) { sketchup.focus_dialog() }, false); @dlg.add_action_callback('focus_dialog') do |ac| @dlg.bring_to_front end
  • How to get near and far clipping plane of view?

    9
    0 Votes
    9 Posts
    9k Views
    E
    @pyroluna said: Well obviously the answer to my previous post here is yes. But it took a few years... https://www.clippingplane.com/ https://sketchucation.com/pluginstore?pln=AdvancedCameraSettings Pyroluna, did you know that there's already a free plugin by S4U to do this? https://sketchucation.com/pluginstore?pln=s4u_Clipping_Camera And it's not quite true that it took a few years. The legacy ThomThom's Camera Tools ( https://sketchucation.com/forums/viewtopic.php?f=323&t=43290 ) provide you instant (Camrea > Advanced) access to the debug dialogue. This plugin is very old but only with SketchUp 2017+ we have FORCE button. May the Force be with us!
  • Distace from Camera to object in drawing.

    44
    0 Votes
    44 Posts
    39k Views
    monsterzeroM
    Thread revive! I found this extension and wow---it's a lifesaver 7 years later! Thanks!
  • [undoc] Camera info window

    17
    0 Votes
    17 Posts
    10k Views
    E
    An oldish thread but I'll poke in and let you know about 2 plugins that can easily access camera dialog box: S4U Camera Clipping - https://sketchucation.com/pluginstore?pln=s4u_Clipping_Camera - a rather new plugin Legacy ThomThom's Camera Tools - https://sketchucation.com/forums/viewtopic.php?f=323&t=43290. You access it via Camera > Advanced (and it has nothing to do with ACT). Have fun and never ever struggle with clipping!
  • Sketchup::model#import : Force "Use Image As" Image

    2
    0 Votes
    2 Posts
    5k Views
    Dan RathbunD
    @alexms said: But, when I do like that, I'm depending on the last choice of Use image as the user's made in import dialog. You are correct there are no importer options for image file types exposed in the Ruby API. If you are still using SU2017 Make, then there is no way to change what the user's last setting was, whilst SketchUp is running. It is saved in the registry, and although SketchUp will immediately update the user's setting (if it changes,) SketchUp core will still use it's internal memory of the setting instead of checking the registry. This means if you attempt to tweak the registry whilst SketchUp is open, it will have no effect. @alexms said: Or should I make a full tool and use add_image ? This is likely your only option. I did post an example of dragging objects around within a tool at the SketchUp forums ... See links in this post: https://forums.sketchup.com/t/how-to-realize-the-drag-effect/125758/4 Once the image is placed, you might try to push it's reference into the selection set alone and activate the ScaleTool. Sketchup.send_action("selectScaleTool:")
  • SketchUp 7.0 ?

    9
    0 Votes
    9 Posts
    7k Views
    I
    @masp said: I found 7.1.6859 (free) for mac (based on Aerilius' post): http://dl.google.com/sketchup/gsu7/FM-2-1-6859-EN.dmg (what a relief: I've been trying to find it for ages!) pro would be similarly: http://dl.google.com/sketchup/gsu7/PM-2-1-6859-EN.dmg Mike Hi! I know it´s been quite posts while since these posts, but miraculously those links are still working. Thanks! I´m trying to download the two older Pro versions for Mac (7.0.8656) and (7.0.10246) but couldn´t find them with this method so far. I tried a lot of alternatives but they didn´t work. Did anyone have any luck? Thanks
  • Individually export all components to .dwg

    4
    0 Votes
    4 Posts
    5k Views
    TIGT
    So if that is the extent of the options, then 'selection' is not there ? So look at my alternative idea of deleting 'everything' but the chosen component instance, then aborting...
  • Looking for plugin/code to connect lines

    5
    0 Votes
    5 Posts
    6k Views
    C
    Thanks Fredo. I think loft is what I was looking for. I just couldn't think of the name so I could search properly. No, nothing bad happened. I just got involved in a lot of other projects. I am getting back into SU now because of one of my newest projects, 3d printing.
  • Webdialogs and Javascript void

    11
    0 Votes
    11 Posts
    9k Views
    Dan RathbunD
    @martinrinehart said: Does void differ from return null? YES. (in the following, violet denotes javascript.) (1) return type: undefined and null are separate return types. ___http://msdn.microsoft.com/en-us/library/7wkd9z69(VS.85).aspx void(whatever) always returns undefined* return( null ) obviously will return null (in this case.)A variable can have a null value, but not an undefined value, because undefined refers to the object, not it's value. You check undefined using quotes: %(#BF00BF)[if(typeof(var)=="undefined") //do something] You check null without quotes: %(#BF00BF)[if(var==null) //do something] The difference is subtle. Basically, if a symbol references a variable that has not been declared, or has been declared but never had a value assigned, then "undefined" is returned. If a symbol references a variable that has had any value (including null,) assigned to it, it will not return "undefined". But be careful! There's a gotcha (because of backward compatibility.) %(#BF00BF)[(object.prop==null)] will return true if the property has the value null or if the property does not exist! You can use in to be more specific: %(#BF00BF)[if ("prop" in object)] will return true if the property does exist. (2) Both are evaluation functions: return( expression ) [called a Statement] Always returns the result (of whatever type,) that expression evaluates to. http://msdn.microsoft.com/en-us/library/22a685h9(VS.85).aspx void( expression ) [called an Operator] Evaluates expression then always returns "undefined" (regardless of the result.) The expression is required or an argument error would be raised. The expression 0 is traditional, and comes from C language (where null and zero were interchangable; but in javascript, 0 is a number type, null is it's own type.) http://msdn.microsoft.com/en-us/library/e17c7cbe(VS.85).aspx The internal code might be represented as: %(#BF00BF)[function void( *expression* ) {] %(#F0F0F0)[___]%(#BF00BF)[eval( *expression* );] %(#F0F0F0)[___]%(#BF00BF)[return( undefined ); }] ___
  • Set_attribute problem

    3
    0 Votes
    3 Posts
    6k Views
    PixeroP
    ~~Then I get: {@myid} I'm doing it inside a: sel.each {|e| puts"{@myid}"; e.definition.set_attribute("A", "Id", @myid) } ~~ Edit: Doh! It was all a small typo with a D instead of a d. Works as it should now.
  • Extension Translators

    3
    0 Votes
    3 Posts
    7k Views
    thomthomT
    @fredo6 said: @thomthom said: Where do your source your translators? Do you mean the tool or people? People.

Advertisement