ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Wrong menu text when it contains forward slashes

    9
    0 Votes
    9 Posts
    1k Views
    T
    I'm glad they fixed it. I remember reporting it as a bug some time ago.
  • Blog Post re JavaScript/Ruby Data Sharing

    2
    0 Votes
    2 Posts
    132 Views
    M
    There is a link to this blog post in the WebDialog docs, but the link is broken. Is this an appropriate place for an item like this?
  • Layers Order

    13
    0 Votes
    13 Posts
    529 Views
    M
    @chris fullmer said: So if you ever hit sort by color, it will be on that next time you open SU. Beautiful! No more confusion here, I was sorted by color (whatever that means). Now I'm sorted by name, as everyone has been saying.
  • Oscar Boolean plugin

    7
    0 Votes
    7 Posts
    2k Views
    mitcorbM
    Well, Pilou: My version of this plugin just sits there and I have tried all combos of group, no group, select all, select some, select none and right click select operation. No results. Just for your info. mitcorb
  • Export as 2D DXF in Ruby?

    5
    0 Votes
    5 Posts
    547 Views
    J
    No, it looks like you can do "only" export a 3d model, or write an image from a plugin. Thanks.
  • Odd Math

    3
    0 Votes
    3 Posts
    246 Views
    J
    Thanks Adam. I still don't understand why sum (which is a Float)shown as 1 instead of 1.0 Might the .inspect method be over-ridden?
  • (Help)Is there any scripts for multi-units displaying?

    3
    0 Votes
    3 Posts
    187 Views
    E
    Thanks Gaieus, and Matt for the script, it's very useful. But could you do it another way? This script just change the unit from model info... My idea is display those units in another measurement window that you can compare more easily. Thanks.
  • Plugin Request - Make Orthrographic Views

    10
    0 Votes
    10 Posts
    918 Views
    JClementsJ
    @unknownuser said: . . . Do you think precise control is needed? No (at least not until there were a lot of people requesting it). I think 3 generic options would be adequate. Be interesting to see the results in the Web Dialog that rotates the model. If that process could be automated it could make for producing an impressive online parts catalog.
  • One question

    4
    0 Votes
    4 Posts
    196 Views
    R
    My mistake then.
  • Component name

    3
    0 Votes
    3 Posts
    227 Views
    honoluludesktopH
    Thanks, I will see if I can make the plugin work
  • What are the rules for location of rubies on a Mac?

    13
    0 Votes
    13 Posts
    949 Views
    C
    I'm not ruby programmer but some installers require you a specific directory. May be the loader expects to find some things on a specific placement. As you know we can get several user accounts with the same directory structure and SU will search for plugins in a determinate order (I read it somewhere). I'm not sure but it could be in the plugins folder inside SU application, then the general library, shared library, user library, and so on. I just collected all of them in my user account/library/application support/GoogleSketchup 7/Sketchup/plugins. All excepting those that are using an installer but probably most of them would work the same. Finally, I don't understand why some rubys needs another location to work. Some problems may need file permissions verification (I tried all possibilities with pipping plugin without success.
  • Menu Guards Using "defined?"

    5
    0 Votes
    5 Posts
    208 Views
    J
    I have decided this is not an issue. It is only relevant for people who are re-loading a plugin for testing. A typical plugin does not even need menu guards at since it only gets required once anyway.
  • Does anyone know of a Ruby that saves your shortcuts

    17
    0 Votes
    17 Posts
    806 Views
    TIGT
    Simply exporting them to file - say 'myshortcuts.dat' makes a list as a text file thus. [Accelerators] Count=64 0 0 0 Space selectSelectionTool: 0 0 0 L selectLineTool: 0 0 0 E selectEraseTool: 0 0 0 C selectCircleTool: 0 0 0 A selectArcTool: 0 0 0 M selectMoveTool: ... The 0 0 0 fields represents modifier keys Ctrl/Alt/Shift, so 0 0 0 H editHide: 0 0 1 H Edit/Unhide/All ###shift This is used to Import your setting in the Preferences window. To ensure that they over-write any pre-existing ones you really need to edit the Windows Registry [ - be verycareful!]... HKEY_CURRENT_USER\Software\Google\Sketchup7\Settings Num_Shortcuts = REG_DWORD = 64 [or total of list length] Shortcut_1 = REG_SZ = "0 0 0 Space selectSelectionTool:" Shortcut_2 = REG_SZ = "0 0 0 L selectLineTool:" etc... You would 'empty' the 'Settings' prior to re-importing new ones ? Don't try this unless you know what you are doing... else= If you did then you could [with SUp closed] use a batch file to clear the Registry's '...\Settings' entries and then use those saved in the 'myshortcuts.dat' etc to remake those entries to suit... An alternative way to get a list of shortcuts is using the Ruby Console command: myshortcuts_array=Sketchup.get_shortcuts which returns an array of tab delimited shortcuts - e.g. ["Ctrl+A\tEdit/Select All", "Ctrl+C\tEdit/Copy", ...] You could manipulate each entry in that array and puts it into an external file [ myshortcuts_file="...\\myshortcuts.dat" ?] - this is equivalent to Exporting your current shortcut settings from Preferences - e.g. "Ctrl+A\tEdit/Select All" >>becomes***>> "1 0 0 A Edit/Select All" ###becomes 'simplied' - the testing and pattern matching is 'cod' here == it's NOT real code ! text=myshortcuts_array[i] ctrl = "1 " if text.includes "Ctrl" else ctrl = "0 " alt = "1 " if text.includes "Alt" else alt = "0 " shift = "1 " if text.includes "Shift" else shift = "0 " key = text.split("+")[1].split("\t")[0] command = " " + text.split("+")[1].split("\t")[1] line = ctrl+alt+shift+key+command myshortcuts_file.puts(line) ### You could make the script auto-run on close and always keep a list of your current shortcuts ? You could then reimport them as desired using Preferences/Import or using a Registry batch-file lash-up... Hope there're a few ideas there...
  • Chrome for Debugging

    5
    0 Votes
    5 Posts
    232 Views
    C
    Check out Firebug lite. http://getfirebug.com/lite.html It works for IE and Safari. All you have to do to debug your Webdialogs is add this line to your HTML: <script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
  • Plugin won't load (&quot;Stack Level Too Deep&quot;)

    3
    0 Votes
    3 Posts
    495 Views
    thomthomT
    http://forums.sketchucation.com/viewtopic.php?f=180&t=15585
  • Startup doesn't startup

    5
    0 Votes
    5 Posts
    313 Views
    R
    I have also noticed a problem with SelectAtStartup when launching SU - it works, but is apparently overwritten by something either internal to SU or another ruby (haven't tested it yet). However, it still works when opening a file or starting a new model.
  • Entity Info Plug In for Face Area

    2
    0 Votes
    2 Posts
    245 Views
    TIGT
    @dean arnold said: Looking for a routine to extract "Entity Info" "such as "Face" "Area" for all entities from a "Layer" of a SketchUp model into a csv, xls or any other file type - an "Entity Info" dump. Some method whereby the numeric and alpha data from a SketchUp model could be imported into a spreadsheet for further analysis. Any information will be a help. I use the free version of SketchUp. I am new to Ruby, but I understand a Ruby Plugin may be a method to accomplish this extraction. Look for ComponentReporter++.rb - this has several examples...
  • Conventions for Output Code

    15
    0 Votes
    15 Posts
    1k Views
    thomthomT
    hm.. that's interesting. Haven't paid much attention to HTML5 the last few months. @martinrinehart said: But we wander. Back to my original question.. Ah, yea. The topic! Sorry, I often stray away and webdev is one of my major interests so I stray even quicker and further when that topic is even remotely related. @martinrinehart said: As browsers are more predictable in standards mode than quirks mode, Ruby-generated HTML should include a doctype and should be valid for its doctype. Agree. Since webdialogs must run under the webkit engine and IE the best chance for platform compatibility is following the W3C standards. When I make webdialogs I do the same as I do when I develop websites. I code to the standards, then to account for IE notoriously bad handling of the standards I add some conditional comments that adds CSS and JS fixes. Most of the time visual quirks in IE is by triggering hasLayout For better legibility and re-usability, separate CSS and JS their own respective files. Using HTML validators to detect correct markup is very important. Once a document is invalid there's no way to predict how the different rendering engines will recover and you can not expect cross platform compatibility. I'm starting to realise that there hasn't been posted any recommendations of best practices when it comes to webdialogs. Coming from a webdesign background I haven't given it much thought.
  • Trying to improve the speed of a simple script

    7
    0 Votes
    7 Posts
    343 Views
    thomthomT
    Did you try to use PolygonMesh?
  • [Need help]How to add several rb_files to a sub_menu

    3
    0 Votes
    3 Posts
    283 Views
    W
    Thank you! I tested it.As what you say ,when sketchup initialize , my rb files can add themself to the same submenu.

Advertisement