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

    c65m3zxt

    @c65m3zxt

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

    c65m3zxt Unfollow Follow
    registered-users

    Latest posts made by c65m3zxt

    • RE: Set_attribute corrupts 2014 files

      @tt_su said:

      I think it might be due to a call to set_attribute where key and value is nil.

      Yes, I noticed there was this call to set_attributes without key and value but couldn't immediately see where it came from. I found the problem now. Thanks for checking.

      Thomas

      posted in Developers' Forum
      C
      c65m3zxt
    • RE: Set_attribute corrupts 2014 files

      Thanks for the confirmation, Max.

      As a quick test I removed the Vector3d object from the attributes but it didn't help. I need to get some work done so I have changed everything to use hashes and a hard coded configuration in the script file. I'll do some more testing when I have more time.

      posted in Developers' Forum
      C
      c65m3zxt
    • Set_attribute corrupts 2014 files

      Hi all.

      I have just completed a script to animate SketchUp scenes that uses attributes to store sequence information. When I use the script on a scene it attaches attributes (strings, integers and a Vector3d object to groups. After saving the file it can't be reopened in SketchUp 2014. Windows reports "Unexpected file format", on Mac it's a similar message that the file is corrupt.

      Has anyone encountered this issue before? I used attributes successfully a few years ago, although I only stored strings back then. I can't remember if this was due to issues I encountered with SU 7 or if I just didn't have to use any more complex objects.

      Thanks,
      Thomas

      posted in Developers' Forum
      C
      c65m3zxt
    • RE: [Plugin Library] LibFredo6 - v15.4d - 14 Aug 25

      @unclex said:

      Error Loading File Fredo6_!LibFredo6.rb
      Error: #<ArgumentError: invalid byte sequence in UTF-8>
      C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Fredo6_!LibFredo6/Lib6PluginDialogs.rb:689:in `[]'

      Hi

      I just fixed a similar UTF-8 encoding issue with the v5.7 version on a 64bit Windows 7 machine. It seems that the "copyright" symbol in the file comments is not correctly encoded and Ruby trips over this. I fixed it by replacing

      IO.foreach(file) do |line|
      

      with

      IO.foreach(file, ;encoding => 'iso-8859-1') do |line|
      

      in line 201 in Fredo6_!LibFredo6.rb and again in line 366 in Lib6Core.rb. Not sure if this is the right way to do it but it works for me right now.

      Cheers,
      tbleicher

      posted in Plugins
      C
      c65m3zxt
    • RE: Sketchup 2013 and MAC OSX Mountain Lion

      The new path for plugins is your users path:
      ~/Library/Application\ Support/SketchUp\ 2013/SketchUp/Plugins/

      posted in SketchUp Discussions
      C
      c65m3zxt