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

    digitecture

    @digitecture

    10
    Reputation
    1
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    digitecture Unfollow Follow
    registered-users

    Latest posts made by digitecture

    • RE: Ruby Script for Adding up length of Edges

      @tig said:

      You can only really parse through entities 'collections': model.entities/model.active_entities and group.entities/definition.entities AND model.selection...

      However, once you have a collected set from that, you can parse that set to find just the things on a certain layer, with a certain material etc...

      Recently the use of 'grep' has been found to speed up entity parsing significantly, I recommend you try it...
      So to find all groups in a selection use:
      gps=model.selection.grep(Sketchup::Group)
      Now 'gps' is an array of all groups in the current selection.
      To find every selected group that's assigned layer 'XXX' use
      xxx=[]; gps.each{|gp| xxx << gp if gp.layer.name=='XXX' }

      If you want to find absolutely everything in the model using that layer, then:
      gps=model.entities.grep(Sketchup::Group)
      and process 'gps'...

      To get matches within a group use:
      gps=group.entities.grep(Sketchup::Group)
      and process 'gps'...

      To find everything in the model using a certain layer try:
      xxx=[]; model.entities.each{|e| xxx << e if e.layer.name=='XXX' }

      There are several alternative methods, like 'collect', but here I just show you make an empty array 'xxx=[]' and then we add to it using 'push' [<<] when we get a match...

      Hello TIG,

      This is once again very helpful. I think I understand your examples to experiment a bit and report back what I develop using this information.

      posted in Developers' Forum
      D
      digitecture
    • RE: Ruby Script for Adding up length of Edges

      @th3lurker said:

      Haven't rubied'in a while, so i'll have to remember the syntax, but until then:

      For each entity in selection array, if it's a sketchup edge, totalLength = totalLength + edge.length ?

      Thank you for this bit of information - as I get this project rolling - I will post here the development of it.

      posted in Developers' Forum
      D
      digitecture
    • Ruby Script for Adding up length of Edges

      I write a script to display the sum of a set of edges that a user has selected. I understand how to use ruby to get access to the selection set. I have not yet figured out how to get this sum of lengths. I would like to create in script a component that I can pass this value to that the user does not see in the viewport for listing through the SketchUp Generate report command.

      Any help will be appreciated thank you!

      One last question, is it possible to parse a layer for a specific set of entities like edges and the do the same as I described above?

      I have not found any ruby commands for parsing a specific layer for all edges contained in that set.

      Thank you,

      posted in Developers' Forum
      D
      digitecture
    • RE: Callouts using SU Component Names

      @marcdurant said:

      Hi-

      The LayOut team is definitely thinking along the same lines. I can't promise when it will get done, but...

      thanks,
      Marc

      This is great. Please consider extending a scheduling component to this idea as well. If you can create a component and name it. Then it is possible to also count the number of these in a sketchup model and display that value in layout with the name description. If we could use dynamic components or some other convention to denote size or dimensions then this is another gem to add to the schedule component idea for layout.

      If that works - then it is possible to do door schedules and pretty much anything else. Sketchup and Layout starts to behave like BIM.

      The more information you can pull in from the component information and dynamic component information for component into a schedule database for Layout - The better.

      You may have a lot of people start to take up interest from other well known BIM programs!

      posted in LayOut Discussions
      D
      digitecture
    • RE: 2013 crashes everytime i use fredo6's bz tools?

      @dave r said:

      I only needed to set permissions for the Plugins folder. I have had no reason to touch any of the folders inside of that folder. Perhaps if you had set the permissions for the folder up front before adding the plugins to it, you wouldn't have had any problems.

      The problem is unless you have encountered this problem, the general user would never know about this.

      This is the first time, I have had SketchUp crash like this that required a search for an answer.

      posted in SketchUp Discussions
      D
      digitecture
    • RE: 2013 crashes everytime i use fredo6's bz tools?

      @tig said:

      I would set your Plugins folder's permissions to be FULL read/write for everyone ?

      Fredo updated some of his tools before to the release of v2013 - in anticipation of its impending changes...
      The Fredo tools' files AND FredoLib etc at the SCF PluginStore are all the latest versions, and will work with v2013 and earlier too...
      Note that v2013 uses a different default Plugins folder location to v8 - are you doing this right?
      You should have FULL permissions to it as it's now in your personal 'users-path'
      What does this code return for you - Ruby Console copy/paste+<enter>:
      Sketchup.find_support_file('plugins')

      I know where the 2013 plugins are located.

      /Users/xxxx/Library/Application Support/SketchUp 2013/SketchUp/plugins

      When I look at the info for the plugins folder it is set to ready and write for everyone but when I look at individual plugin folders within that folder these are not set to that. Do I have to set each file and folder to this?

      -Okay, I applied those settings to all enclosed items.

      This should be done when Sketchup installs. Does everyone do this when they upgrade to the next version?

      posted in SketchUp Discussions
      D
      digitecture
    • RE: 2013 crashes everytime i use fredo6's bz tools?

      @dave r said:

      Please update your profile to include your OS and SU version.

      There are permission settings for the Plugins folder on Mac OSX, at least the most recent two versions.

      Did you update the entire LibFredo6 files? You didn't say.

      Yes, I am using the Sketchucation plugin store to manage plugins so I update from there.

      I updated the Fredo libs, and the plugin to the newest that is available from there.

      What should the permissions be set to other than for my user read and write, fetching read only, and everyone read only?

      BTW - I just autoinstalled again all of Fredo's plugins that I use from Sketchucation plugin store. Most are updated from April 2013 which is before the release of SU 2013.

      posted in SketchUp Discussions
      D
      digitecture
    • RE: 2013 crashes everytime i use fredo6's bz tools?

      @tig said:

      @didgtecture

      Have you installed all of the latest versions of these tools AND the required Lib - these were updated to suit v2013 some weeks ago.
      Have you set your permissions properly for the v2013 Plugins folders etc.
      Have you set SketchUp always to run as admin?
      Do you have plugins like Vray beta loading, which are known to cause clashes/crashes ??

      I updated this plugin and the libtranductor plugin. The plugin crashed 2013 repeatedly many times, like 10 times within 30 minutes.

      I am running on OSX, so there are no settings like on Win for admin or permissions. I have Maxwell and I disabled that to test and no change. There are two plugins that I have that have crashed SU and that is this one and a control point plugin that caused a strange crash. That is all.

      posted in SketchUp Discussions
      D
      digitecture
    • RE: 2013 crashes everytime i use fredo6's bz tools?

      I have the same problem. SU2013 crashes many times with this version of the plugin. I went back to a version that I have for SU8 that is dated 2008. It works perfectly without any crashes.

      It is a repeatable error:

      Sequence of Steps to Crash;
      1 - Select Polyline divider
      2 - Set Length to 5' for spacing
      3 - Set one point
      4 - Set second point
      5 - Line drawn with intervals
      6 - Start to set third point
      7 - Pause
      8 - Crash

      posted in SketchUp Discussions
      D
      digitecture