sketchucation logo sketchucation
    • Login
    1. Home
    2. glro
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 29
    • Posts 403
    • Groups 1

    Topics

    • G

      model facade scaffolding

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions
      3
      1
      0 Votes
      3 Posts
      68 Views
      T
      fine! thanx!
    • G

      custom length snapping

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      1
      0 Votes
      3 Posts
      124 Views
      K
      Thank you so much for the info.
    • G

      Model structures with aluminum trusses

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      6
      0 Votes
      6 Posts
      12 Views
      G
      thank you for taking the time to try, and for the advice
    • G

      Inteloide - Tube Cutting Optimization

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      2
      0 Votes
      2 Posts
      2k Views
      G
      OK, i should have worked a little more before asking for help I understand now When different lengths are introduced, if there as many lengths of uncut tube as cut tubes [image: RnBy_2021-03-0116_53_18-Inteloide-TubeCuttingOptimizationsketchUcation1.png] It gives a results, but with an error: tube number 1, 3 m long, cannot be divided in 4.76 m
    • G

      How to retrieve the version of the model

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      810 Views
      TIGT
      You need to read in the first part of the binary file SKP and see what version it says... ໿SketchUp Model೿{17.0.18899}䖯挢べ仪躯蘚䆤寸ÿ... In Ruby try something like this: vv=File.open(skp_path, 'rb'){|f| f.read }.unpack('m*').pack('m').gsub(/SketchUpModel/,'').to_i.to_s;if vv[0].chr=='1';v=vv[0].chr+vv[1].chr;else;v=vv[0].chr;end skp_path is the full path to the SKP you are trying to find the version of. vv is the long version number, as a string [e.g. "17018899"] v is the short version number, as a string [e.g. "17"] If you want more details parse vv differently...
    • G

      A ruby code to display dynamic component

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      1k Views
      G
      i have to work to understand what you wrote, observers a re new for me thank you @dan rathbun said: Taking John's example cross-platform: > class MyModelObserver < Sketchup;;ModelObserver > > # ! If the DC extension is ever changed, this example could break ! > > def onPlaceComponent(instance) > return nil unless defined?($dc_observers) > # check if it's a DC in here; > if instance.attribute_dictionaries && > instance.attribute_dictionaries['dynamic_attributes'] > # then set Selection Tool and trigger the dialog; > Sketchup.active_model.select_tool(nil) > dc_class = $dc_observers.get_latest_class > if dc_class.configure_dialog_is_visible > dc_class.get_configure_dialog.bring_to_front > else > dc_class.show_configure_dialog > end > dc_class.refresh_configure_dialog > end > end > > end > This code is fragile, because it deals with someone's else's extension. They could change it (such as method names,) at any time in the future and this example will break.
    • G

      Update of skechup mobile app

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      1
      0 Votes
      1 Posts
      246 Views
      No one has replied
    • G

      3d text box through Sketchup.send_action(21023)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      318 Views
      G
      @driven said: well, they have always said not to rely on them... but this works on my mac, but isn't in the list... Sketchup.send_action "select3dTextTool;" john it works also in windows 7 it was not documented thank you
    • G

      Animation.rb with zoom active

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      1
      0 Votes
      1 Posts
      150 Views
      No one has replied
    • G

      Ruby code to retrive sketchup version of a model

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      18
      0 Votes
      18 Posts
      1k Views
      sdmitchS
      @jim said: "A".ord http://ruby-doc.org/core-2.0.0/String.html#method-i-ord Thanks for the info and especially the link.
    • G

      Interactive scenes list

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      12
      0 Votes
      12 Posts
      941 Views
      sdmitchS
      If you could PM me a sample model, <=2014, to play with, I'll see what I can do.
    • G

      Sketchup 8 faster than sketchup 13?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      29
      0 Votes
      29 Posts
      4k Views
      R
      @unknownuser said: There is no "external" ruby pipeline. Phew, I was worried for a moment.
    • G

      [plugin] multiple dimension tool

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      8
      0 Votes
      8 Posts
      2k Views
      G
      I updated the plugin http://sketchucation.com/forums/viewtopic.php?p=505840#p505840 [mod=:mjnka2at]I added the correct link - taken from the small tag below the title of the first-page. TIG[/mod:mjnka2at] 11 points instead of 6 in a horizontal plane only but following any direction J FOLTZ's inputbox.rb is included in the folder.
    • G

      Retrieve size sketchup file using ruby

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      7
      0 Votes
      7 Posts
      394 Views
      G
      @tt_su said: @glro said: i didn't find this information in http://www.sketchup.com/intl/en/developer/docs/methods.php nor http://www.sketchup.com/intl/en/developer/docs/classes.php Those docs only cover the SketchUp API, refer to the Ruby docs for core Ruby features: http://www.ruby-doc.org/core-1.8.6/index.html I am not a professional programmer, and sometimes, i even surprise myself when i get a result from the code i just wrote there is intelligence in the code itself Maybe that's why i enjoy so much writing code Next time i don't find something in SU API, i'll look for it in Ruby doc Thank you
    • G

      Sketchup viewer portable

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      3k Views
      G
      @dan rathbun said: The viewer writes it's settings into it's own registry hive on PC, so it is separate from the Make or Pro SketchUp settings. These viewer registry settings would be left behind on the workstation, but should not cause any problems. The more important isssue is if the workstation will have all the required libraries already installed on them. Such as the correct version of the C runtime library. Dot NET libraries, etc. thank you for these informations i don't understand everything, but from what i understand, it should be possible to use su viewer in a portable way
    • G

      Number of edges mystery

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      7
      0 Votes
      7 Posts
      316 Views
      G
      [image: UAap_removelonelyvertex.png] @tig said: You can use Move to relocate a line's end/start vertex and snap it to another. Also see... http://sketchucation.com/resources/pluginstore?pln=FredoTools In that Fredo has a tool that remove unneeded [lonely] vertices in collections of selected edges. So if your tiny edges are co-linear with another longer edge then it will merge the two into one longer edge... yes remove lonely vertex solves the problem but only when i copy the rectangular surface apart and select it individually when it is side by side with others, it doesn't work but i think i understand now the source of the problem when i zoom, i notice that the rectangular surfaces are overlapped just a little so logically, sketchup cut the edge and made 2, one almost the side of the rectangle, and the other, a very short one... I checked my original dxf file, and yes, they overlap also... so Baz was right, sometimes, draftsmen may be sloppy, especially me... thank you for helping me out [image: tsKu_overlappingsurfaces.png]
    • G

      Mirror de TIG, en francais dans le texte...

      Watching Ignoring Scheduled Pinned Locked Moved Français
      1
      0 Votes
      1 Posts
      246 Views
      No one has replied
    • G

      Find a component definition in a list

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      195 Views
      thomthomT
      A less verbose version:. <span class="syntaxdefault">result&nbsp;</span><span class="syntaxkeyword">=&nbsp;</span><span class="syntaxdefault">references</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">find&nbsp;</span><span class="syntaxkeyword">{&nbsp;|</span><span class="syntaxdefault">string</span><span class="syntaxkeyword">|&nbsp;</span><span class="syntaxdefault">string</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">rstrip&nbsp;</span><span class="syntaxkeyword">==&nbsp;</span><span class="syntaxdefault">ref&nbsp;</span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">puts&nbsp;</span><span class="syntaxstring">'Hello'&nbsp;</span><span class="syntaxkeyword">if&nbsp;</span><span class="syntaxdefault">result</span>
    • G

      To detect if a component contains a component

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      239 Views
      G
      @dan rathbun said: Here's another edition (wrapped in method,) that only works upon the active editing context (to help prevent BugSplats!,) tests first for any definitions and lastly filters out images and groups. thank you for the code i tried it, but it doesn't work, at least on my computer
    • G

      3D cursor

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      16
      0 Votes
      16 Posts
      651 Views
      G
      @dave r said: Not at all. Between us we are making sure this thread has been well and truly hijacked, though. concerning global axis... blue axis is not a problem i have seen a plugin that changes the cursor using a bmp file; i don't remember the name; it could be a solution, since a flat cursor could show red and green directions how to change the cursor using a bmp or jpg file?
    • 1 / 1