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

    Posts

    Recent Best Controversial
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @awadrummer said:

      Does anyone know if this plugin is compatible with Sketchup Pro 2018?

      I did a little test and I ran into some issues for su2018 😞
      I will try to find some time to look into them...

      @awadrummer said:

      I'm looking to upgrade, but can't live without this one.

      Great to hear you like it!

      posted in Plugins
      brewskyB
      brewsky
    • [Plugin] BIMserver 0.3.0 (june 30, 2015)

      I'm working on a new plugin that uploads the current SketchUp model directly into the open source BIMserver (as IFC).

      You need a running BIMserver to try it:
      https://github.com/opensourceBIM/BIMserver/wiki/Get-Started-Quick-Guide

      Any BIMserver users on SketchUcation? Interested in testing? 😄


      BIMserver-0.3.0.rbz

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @twillm said:

      Successfully loaded and working.

      Great! 😄

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      Fix for mac! Menu layout needs some work still.
      Check out the plugin store 😄

      posted in Plugins
      brewskyB
      brewsky
    • RE: Load classification system via ruby code

      @dan rathbun said:

      This is going to bloat model files.

      Yes, I'm glad they DO store the scheme inside the model so you don't have to redistribute it seperately, but more than one "copy" in the model indeed seems bloated.

      I'm curious what happens when you upgrade a model from IFC 2x3 to 2x4(when a scheme is available). I'm affraid you would have to re-assign every single property... and manually remove the old scheme to get rid of the duplicate classifications.

      posted in Developers' Forum
      brewskyB
      brewsky
    • RE: Load classification system via ruby code

      @dan rathbun said:

      But... the actaul value in the nested dictionary is a string "partial" ?
      Ie, not the integer of the choice ?

      Yes indeed, a string. There is another atribute called something like "options" which contains a list of valid options (as strings). The entire classification scheme that goes with the selected ifctype(ifcBuilding) is stored inside the componentdefinition. So you can check validity right from the definition without having the original source scheme.

      posted in Developers' Forum
      brewskyB
      brewsky
    • RE: Load classification system via ruby code

      😄 HaHa!!!
      I just found out that classifications are stored as nested attribute dictionaries!
      That means you can set classifications(if you're a bit careful) using the "normal" way with "set_attribute", I guess even in the free version...
      A "IfcBuilding" for example gets an attribute dictionary called "IFC 2x3" which gets a nested attributedictionary "CompositionType" which gets a nested attributedictionary "IfcElementCompositionEnum" in which "value" can be set as "partial"

      Cheers!
      Jan

      posted in Developers' Forum
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @dan rathbun said:

      .
      I do not understand why some coders go out of their way, to write minimalist hard to read and understand code. Come back 3 years from now and see if the coder remembers what the code is supposed to do, without spending a half hour consulting method documentation, etc.

      LOL Thank you very much! I totally agree with you. It indeed seemed a nifty piece of code I found on stackoverflow, but every time I needed to edit it, it took me half an hour to re-interpret it(and I'm still not 100% sure how the tap works).
      Now you write it out it does not seem so difficult anymore 😄
      I should have added the indentation myself the moment I tried to understand what it did 😕

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      Hi Dan,

      I also removed a "tap"-call because it was added in ruby 1.9.
      Would you consider this a good substitute? Or would it be much slower?

      hash = {}.tap{ |r| bt_entities.each{ |ent| ent.properties_editable.each{ |k,v| (r[k]||=[]) << v } } }
      
      hash = bt_entities.inject({}) {|h,ent| ent.properties_editable.each{ |k,v| (h[k]||=[]) << v}; h}
      

      something I borrowed from:
      http://stackoverflow.com/questions/5490952/merge-array-of-hashes-to-get-hash-of-arrays-of-values

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      I've been able to remove the dependency on pathname and it's running now on SU7 and SU8.

      Although one (probably showstopper) problem remains. Auto-updating of modified objects does not work on SU7 because the "EntitiesObserver.onElementModified" method was added in SU8.
      That means updating geometry must be done manually by disabling and re-enabling the observers (red/green button).

      New version added to this post, I will add it to the plugin store when I also fixed the MAC issue, but that has to wait a little until I get my hands on a MAC 😉


      bim-tools-0.13.3.rbz

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @dan rathbun said:

      Single argument String subscripts are one of the breaking changes from Ruby 1.8 to 2.0.

      Hi Dan, thanks for helping out! 😄 That fixes one error! 😉
      SketchUp even seems to drops out here before the strip-string, on requiring the "pathname" module.
      I guess that's one of the modules that was missing in the old 1.8 stripped ruby environment.

      still some more warnings to wade through I see ...

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @steve69 said:

      @ Sku 7.1 startup

      Hmmm I have not been testing on old versions, I'll check it out, maybe it's easily fixed... 😉

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @twillm said:

      Is bim-tools compatible with mac version of sketchup 2015.
      I attempted to install using sketchucation plugin store v2.6.1
      Received error message

      Thanks for posting this issue!
      I believe it used to work on Mac, but have never been able to test it myself.
      I will try to borrow a Mac and check it out 😉

      The error is related to reading the config file, did you by any chance modify that file?

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      New version 0.13.2 online!

      Feels much more solid due to improved observers 😄

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @unclex said:

      if you have cleaned bim information, you must run SU again, Using File→New could not worked, isn't ?

      Okay, I completely uprooted the observers that keep track of the active entities, and it seems much more solid now 😄

      Can you give it a try before I upload it into the PluginStore?
      Thanks!

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @unclex said:

      Now I Know What Happened

      12.4 can work under customized catalogue, 13.0 not

      and 13.0, if you have cleaned bim information, you must run SU again, Using File→New could not worked, isn't ?

      Thanks! You're probably right, I also had some trouble changing between models without restarting SU a couple of weeks ago, I thought I fixed that. I will check it out!

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @unclex said:

      0.12.4 work fine
      but 13.0 cannot work like 12.4 @su2015x64pro

      such as several box could be converted to wall&floor by just one click using 12.4
      but 13.0, some faces cannot be converted

      Can you send me an example model (PM?), then I'll check it out.
      In my own tests the new 0.13.0 worked on more faces than 0.12.4, so I'm curious... 😄
      Thanks for posting the issue!

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      New version online! Finally support for imperial units 😄

      posted in Plugins
      brewskyB
      brewsky
    • RE: [Plugin] bim-tools 0.13.4(june 22, 2015)

      @gudio83 said:

      where is the html file?
      the plugin create bim-tools, so i have to add bimtools, right?

      Do you have trouble installing? I think this tip is rather outdated by now.
      The easiest way to install is through the Sketchucation Plugin Store (Search on author: "Jan Brouwer"):
      http://sketchucation.com/plugin-store-free-download

      You can also rename the download from bim-tools-0.12.4.zip to bim-tools-0.12.4.rbz.
      Then it can be installed thtough: Window --> Preferences --> Extensions
      I will use that filetype as the default for the next version...

      posted in Plugins
      brewskyB
      brewsky
    • RE: SKUI — A GUI Framework for SketchUp

      Some use-cases

      @thomthom said:

      What I'm thinking is that for the glyph, the existing Button can be extended. For the graphical button, I'm wondering if perhaps a new class makes sense... ?
      Or maybe not.... (thinking out loud here...)

      A new (sub)class, or maybe set a "type" for the button?

      @thomthom said:

      Maybe Button.glyph=
      and Button.image_normal=, Button.image_hover=, Button.image_disabled=, Button.image_focused= ?

      this would work nicely for "use-case 2", but not for "use-case 1". And I can't think of a way to position it halfway a line of text...
      Difficult to find a universal solution...
      What I'm trying to do is only(at the moment) use-case 3 and 4.

      posted in Developers' Forum
      brewskyB
      brewsky
    • 1 / 1