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

    Topics

    • M

      Scene (Page) animation of Section Cuts

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      565 Views
      TIGT
      You can 'get' & 'set' [with = ] page.name BUT you can only 'get' the page.label By default the page.name==page.label and so it's in the animated set... Sorry, but the API is lacking page.label= or similar... Of course, the Animation class can be used filtering out () labels, BUT you can't change a page.label in code
    • M

      Upgrading plugins to Ruby 2.0 for SketchUp 2014

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      43
      0 Votes
      43 Posts
      7k Views
      tt_suT
      Your force encoding example will only work if the input text file (CSV) file is ISO-8859-1. ISO-8859-1 is all 8bit per character. However, if you open a file that is saved with UTF-8 encoding and it contains characters over the ASCII range (127) then there will be multi-byte characters - when you then force ISO-8859-1 encoding and convert that to UTF-8 you will mangle the characters. If you have no idea or control over the input data then I would try to use a try/catch approach of first reading the file in what is more likely for the file to be encoded in. If you get encoding errors thrown which you can catch and try the next likely encoding. You can then fall back to just reading it as binary: if RUBY_VERSION.to_f > 1.8 filemode << ';ASCII-8BIT' end File.open(file_name, filemode) {|file| file.seek(80, IO;;SEEK_SET) face_count = file.read(4).unpack('i')[0] } Look at these errors and see if they might be thrown: Encoding;;CompatibilityError Encoding;;ConverterNotFoundError Encoding;;InvalidByteSequenceError Encoding;;UndefinedConversionError EncodingError If you are not familiar with Unicode and how it's represented in byte data I would recommend reading up on that as well. The reason it has worked for you so far has probably been that you have had ASCII compatible data. UTF-8 is byte compatible with ASCII where it uses only one byte per character - but the moment you go outside the ASCII (US-ASCII to be precise) it get multibyte characters. For your testing purposes I would strongly recommend you test with non-english characters. For good measure make sure you go outside of European languages as well, try Japanese or Chinese for instance which might be four byte per characters.
    • M

      Automated Construction Planning plugin

      Watching Ignoring Scheduled Pinned Locked Moved Extensions & Applications Discussions extensions
      5
      0 Votes
      5 Posts
      3k Views
      jeff hammondJ
      nice, good to hear! neither of those two factors would be a deal breaker for me. do you have a twitter, blog, facebook, etc set up to track the progress or would it be best to just follow this thread?
    • 1 / 1