1. Hey guyz. Welcome to the All New Phlatforum!



    Sign Up and take a look around. There are so many awesome new features.

    The Phlatforum is a place we can all hang out and

    have fun sharing our RC adventures!

  2. Dismiss Notice

Unable to save a profile.

Discussion in 'SketchUcam Help' started by estes53, Sep 19, 2016.

  1. estes53

    estes53 New Member

    Offline
    Messages:
    4
    Trophy Points:
    1
    Location:
    Marshall, AR, USA
    When I hit <Save> I get "Tool Change Options" window at which whether I select cancel or OK, the window closes and does nothing else.

    I am assuming at this point that it worked, but nothing is saved and there was never a dialog asking for a name. Btw, I am using a Mac.

    Alan
     
  2. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    after you accept the tool settings you are supposed to see a filesave prompt dialog.
    If you are not seeing it, well, I think that means that the default path cannot be found, which in Sketchup usually means that you have an unusual character in your username. Yup, they still have not fixed THAT!

    What has your username got to do with the path? It is trying to save the profile in your user home folder.
    notes from the code say:
    # Sketchup.find_support_file returns directory in:
    # ~/Library/Application Support/Sketchup X/SketchUp/

    the ~ means your home folder, which it cannot find if it contains a special character.

    How to fix it?
    edit the file SketchupDirectoryUtils.rb (you will have to search for it in Finder) and edit the line
    Code:
    path = File.join(Sketchup.find_support_file("Plugins"),"Phlatboyz", "Profiles")
    
    to use a different path that excludes the Sketchup.find_support_file("Plugins") part.
    The path MUST EXIST and you (the user) must be able to write files there.

    an example might be
    Code:
    path = "/var/tmp/sketchup/"
    
    and you have to create 'sketchup' in /var/tmp/

    Sadly, I do not have a Mac so I cannot find fixes for all these little things that different platforms do differently.
     
  3. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Hi @estes53
    I had another idea about this, are you running the latest MacOS, El Capitan? In this case I think I have found the problem.
    The directory util checks to see if it is running 'darwin' to see if it is Mac, but instead it should be checking for 'mswin' since that stays constant whereas 'darwin' has probably changed to 'capitan' as the systrem identifier.

    You need to find the file SketchupDirectoryUtils.rb and replace it with the attached file...
    Please let me know if this works
     

    Attached Files:

  4. jorge2301

    jorge2301 New Member

    Offline
    Messages:
    6
    Trophy Points:
    3
    Location:
    portugal
    no. not working... at least for me
     
  5. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Please install the new version, 1.4c
     
  6. jorge2301

    jorge2301 New Member

    Offline
    Messages:
    6
    Trophy Points:
    3
    Location:
    portugal
    I already have it Captura de ecrã 2017-01-02, às 21.24.56.png
     
  7. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    I will have to borrow a Mac and look into this. My MAC owning friend gets back tomorrow.....
    What version of MACos are you using?
     
  8. jorge2301

    jorge2301 New Member

    Offline
    Messages:
    6
    Trophy Points:
    3
    Location:
    portugal
    os sierra... another problem when you try to save machine options : Captura de ecrã 2017-01-02, às 22.29.26.png
     
  9. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Please reinstall V1.4c and restart Sketchup, just to make sure you have the correct code.
    Default_multipass_depth is supposed to be a value entry box, not a true/false box. The code I have is correct, so the problem must be on your machine, maybe a faulty install because of a previous version. Make sure you have permission to overwrite the files before installing.
     
  10. jorge2301

    jorge2301 New Member

    Offline
    Messages:
    6
    Trophy Points:
    3
    Location:
    portugal
    After reinstalling the OS Sierra, sketchup, and v1.4c, on a MacBook Pro (clean installation of all), the same error "Default_multipass_depth = true/false"...
    on iMac 27"... the same... only previous version (v1.4b) change that error, but still not save profiles Neither tools...
    Sorry to bother ;(
     
  11. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    If I may chime in here. I normally don't check that part but I did for this discussion and I too have the default being true/false. I'm on 1.4c also.

    I'm on Windows 10 BTW.

    Untitled.png
     
  12. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    hmm, I seem to have missed something somewhere and forgotten how to count fields,let me look on the laptop again....
     
  13. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    sorry, there was an actual bug. Please download the new file and install
    @TigerPilot thanks for your help
     
  14. jorge2301

    jorge2301 New Member

    Offline
    Messages:
    6
    Trophy Points:
    3
    Location:
    portugal
    hi, sorry to bother again, but first thanks for your work, the problem is solved... still missing the "profiles save"... maybe when you test in a Mac :) .
    i have another problem, could it be a bad configuration?! the "I" and "J" and not the "R" for arcs and circles.
     

    Attached Files:

  15. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Please read the help
    And watch the intro video for 1.4c
     
  16. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    I believe I have found the problem with saving profiles.
    In version of Sketchup before 2014 there was a problem with the .savepanel() function that ffected how it used wildcard file selections.
    This bug is still present in the Mac version!

    So, Mac users please install the attached file (restart Sketchup after install) and test the profile save. Please let me know what you find.
    Thanks
    (I had to borrow a Macbook to test this out, which was quite interesting)
     

    Attached Files:

  17. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
  18. jorge2301

    jorge2301 New Member

    Offline
    Messages:
    6
    Trophy Points:
    3
    Location:
    portugal
    sorry man for the delay, I only tried it today, it´s working 99.9%... when you save the profile, It does not matter what folder you choose to
    to save, because it always save in the right folder, "profiles" folder. GREAT WORK. THANK YOU
     
    swarfer likes this.
  19. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    V1.4d released yesterday contains this fix, and few other things....
     
    Last edited: Jan 19, 2017

Share This Page