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

Error message "Safe travel Z-axis"

Discussion in 'SketchUcam Help' started by Dagfinnie, Jun 7, 2015.

  1. Dagfinnie

    Dagfinnie New Member

    Offline
    Messages:
    4
    Trophy Points:
    1
    No matter what value I put in I get this error message when I try to run G-code from my drawing.
    Is there an obvius answer to this?
    upload_2015-6-7_7-46-57.png
     
  2. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    I'm sorry, but where did you put this value in? In the parameter box? Can you try with a value of 0.125, just to see if it works?
     
  3. Dagfinnie

    Dagfinnie New Member

    Offline
    Messages:
    4
    Trophy Points:
    1
    Well. I tried to put the value 0.125 in the "safe z-travel" parameter box and got this message in return. Attached is also the setup.
    upload_2015-6-7_23-21-29.png upload_2015-6-7_23-22-55.png
     
  4. ewo

    ewo Moderator Staff Member

    Offline
    Messages:
    701
    Trophy Points:
    18
    Location:
    Indiana
    Try this #
    6mm

    Use that egg-zaggt'ly Dont use ~
     
  5. Dagfinnie

    Dagfinnie New Member

    Offline
    Messages:
    4
    Trophy Points:
    1
    upload_2015-6-8_8-25-41.png
    I get the same error message. I checked "display unit format" in Sketchup to show mm and it didn' t work either.
    Attached is the G-code generated. The drawing does not show up in the screen.
     
  6. ewo

    ewo Moderator Staff Member

    Offline
    Messages:
    701
    Trophy Points:
    18
    Location:
    Indiana
    Please post the SKP file you are trying to Generate g-code for
     
  7. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    I think the problem is your 'regional settings' in Windows. You have the decimal point defined as a comma
    123,5
    but it needs to be
    123.5
    otherwise Sketchup cannot interpret the number from text into a number.


    You also have no decimal digits in your display format, otherwise I think you would see this in the parameters dialog.
     
  8. ewo

    ewo Moderator Staff Member

    Offline
    Messages:
    701
    Trophy Points:
    18
    Location:
    Indiana
    Im stumped....

    What does regional settings have to do with it ? o_O

    I dont expect you to teach me everything but '
    I would like to understand this :oldman:
     
  9. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    computers are very literal, not like people who 'interpret' everything we see.
    so, in much of the world a number is written
    3.1415 with a decimal point
    while in other parts, it would be written
    3,1415 with a comma as the separator

    to us it just looks like Pi, to the computer the one looks like a floating point number in string format, and the other is 'just a string' unless the Regional settings tell it to use the comma for something special, like separating numbers.

    To complicate matters, Sketchup has 2 internal ways of dealing with this stuff. If an internal value is a 'Length' object (specifically a length in inches), then it knows about regional settings and does the right stuff when interpreting strings. However, if a value is 'just a number' Sketchup ignores regional settings and insists on using a '.' as the separator.

    To complicate things even more, the computer also needs a list separator, so that you can type
    10,12.5
    in the VCB in Sketchup and have it create a 10 by 12.5 inch rectangle. Here the comma is the list separator, but if Regional settings say it is a decimal separator, what do you use for lists? the answer is, according to Google, the semicolon (-:

    So, back to the internal formats. Since all lengths are inches inside Sketchup, and it does special things with those, in the parameters dialog when you are entering percentage depths etc, they have to be treated as 'a number' rather than 'a length' otherwise Sketchup might convert them to millimeters, depending on Model units settings. And this causes this conflict between what we see and what the computer likes and understands. A further complication is using mm as the model units on the parameter dialog, since the parameter dialog is actually a web page and any code it has to run to get and set values is Javascript, and all internal code for Sketchup is Ruby, they do not agree on number format either.

    I have looked at this issue a few times already. There are a lot of places in the code to 'fix' so that regional settings don't matter any more, and none of the fixes are straightforward. Just one question to answer that affects a host of things is "what format do we write the stored options file in, regional format, or decimal point format?". If we write in regional then this is complicated by the distributed files having "my" regional settings, but the bloke who installs in " 3,1 land" will not be able to read that format without some glue code that can interpret both formats. Write in '.' point format and then I need to write ALL the code to always interpret that format since Sketchup sometimes will not be able to do it with the regional settings that it knows about.

    S0, right now the solution is "sorry, set your Regional settings to use the . as separator because Sketchup is actually broken".
     
  10. ewo

    ewo Moderator Staff Member

    Offline
    Messages:
    701
    Trophy Points:
    18
    Location:
    Indiana
    David
    Thanks for your explanation !
    I still dont understand ...... But no Matter ! I am a Dummy , We all know that

    You are the King with this stuff and i really do Appreciate all you do here.

    Thanks
     
  11. Dagfinnie

    Dagfinnie New Member

    Offline
    Messages:
    4
    Trophy Points:
    1
    That did the trick! Thanks!
     

Share This Page