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

    Posts

    Recent Best Controversial
    • RE: [Plugin] Purge Folder of SKPs

      Still not available, the Chinese path and file name.

      
      model = Sketchup.active_model
      path=model.path
      path1=File.expand_path(model.path)
      path2=model.path.tr("\\","/")
      
      path.class #-> string
      path1.class #-> string
      path2.class #-> string
      
      

      path,path1 and path2, all class are string, all value are "/Users/liuzhenyi/Desktop/中文/测试.skp"
      so,path=path1=path2.

      {File.expand_path(model.path)} same as the original {model.path.tr("\","/") or model.path}

      File.delete(), File.exist?() and File.rename() , I tested ,not supported chinese.

      I use google search, found it difficult to support.

      Thanks TIG. hope you have a good solution.

      posted in Plugins
      O
      ODM
    • RE: Model's save method, about chinese filename and path

      I would like to support chinese path as Sketchup's open_file method, model's save method why not support it?

      posted in Developers' Forum
      O
      ODM
    • RE: Model's save method, about chinese filename and path
      
      model = Sketchup.active_model
      path=model.path
      path1=File.expand_path(model.path)
      path2=model.path.tr("\\","/")
      
      path.class #-> string
      path1.class #-> string
      path2.class #-> string
      
      

      path,path1 and path2, all class are string, all value are "/Users/liuzhenyi/Desktop/中文/测试.skp"

      Whether it can be said path=path1=path2.

      model.save method see:
      http://code.google.com/intl/en/apis/sketchup/docs/ourdoc/model.html#save
      Should be filename is string, use path "/Users/liuzhenyi/Desktop/en/en.skp" ,it's ok.

      Should make the save method, recognized the chinese filename and path.
      unicode can solve? or rewrite the save method. SketchUp 8.0 Ruby version is 1.8.6,maybe sketch up 9.0 will support....

      thomthom,Thanks a lot .

      posted in Developers' Forum
      O
      ODM
    • RE: Model's save method, about chinese filename and path

      Thanks thomthom.

      get string's method,see Tig's batchpurge plugin:

      model=Sketchup.active_model
      path=model.path.tr("\","/")

      then, path is "/Users/liuzhenyi/Desktop/中文/测试.skp" (use mac ox system).

      I will try it use UnicodeEX module, thanks again.

      posted in Developers' Forum
      O
      ODM
    • RE: [Plugin] Purge Folder of SKPs

      very cool.I tested and found model.save not is supporting chinese filenames and path, such as:

      Sketchup.open_file "/Users/liuzhenyi/Desktop/中文/测试.skp"
      -> true
      model = Sketchup.active_model
      model.save "/Users/liuzhenyi/Desktop/中文/测试.skp"
      -> nil

      posted in Plugins
      O
      ODM
    • Model's save method, about chinese filename and path

      HI,all,
      A problem, about model's save method. don't support the Chinese filename and path. It's ok for Sketchup's open_file method. such as:
      Sketchup.open_file "/Users/liuzhenyi/Desktop/中文/测试.skp"
      -> true
      model = Sketchup.active_model
      model.save "/Users/liuzhenyi/Desktop/中文/测试.skp"
      -> nil
      How does it work? Thank you!

      ODM.

      posted in Developers' Forum
      O
      ODM
    • RE: Questions/Comments on Clipping

      @mitcorb said:

      Well, ODM:
      It appears I am denser in the head than most. I did not see how your reply pertained?

      Mitcorb:

      Sorry, My english is poor. I can not express my idea right, I'm trying to learn English.
      I mean, SketchUp model of the size of the operation, and the computer's processor, memory and video card related. If you have a good computer, especially the graphics card, another big point of your model is not a problem.
      hope you can understand, thank you.

      ODM.

      posted in SketchUp Discussions
      O
      ODM
    • RE: Picture size limitations

      SketchUp insert a picture, the larger the image file is not more clear. Pixel control 2000px below picture will be clearer. SketchUp, 8 better than 7.

      posted in SketchUp Discussions
      O
      ODM
    • RE: Questions/Comments on Clipping

      SketchUp high demand on the graphics card, usually for nVIDIA better than ATI, SketchUp OpenGL for large models 3dmax excellent performance is not optimal.

      posted in SketchUp Discussions
      O
      ODM
    • 1 / 1