Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Sorry for the beginner's question, but I need to mix length units and I do not know how...

jacques_blainjacques_blain Member Posts: 2 ✭✭
i.e. I would like to say

        const VNSpindleBearingOD is string     = "SpindleBearingOD";
        const SpindleBearingOD      is number = 3.15; // this value is in inch
        const VNSpindleBearingOD is string     = "SpindleBearingID";
        const SpindleBearingID       is number  = 80; // This value is in mm
       
        verifyVariableName (VNSpindleBearingOD);
        setVariable(context, VNBearingSpindleOD, SpindleBearingOD); // By default my project is in inch so this will be OK

        verifyVariableName (VNSpindleBearingID);
        setVariable(context, VNBearingSpindleID, SpindleBearingID); // !!!>>> But this will be interpreted as inch, instead of mm

Any help will be greatly appreciated




Best Answer

Answers

  • jacques_blainjacques_blain Member Posts: 2 ✭✭
    Thank you very much Ilya, have a nice day
Sign In or Register to comment.