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.

having some trouble with opChampfer

Hello everyone,

I tried adding an opChampfer to my script.
But for some reason, it showed me an Error regarding the ChamferType:


The only way to "fix" this was to delete the chamferType-line entirely.
But now it will create only chamfers with equal offsets, even when I add the angel to the map.
Did I miss anything?

https://cad.onshape.com/documents/18bc9429cf74f25bda45bcb3/w/0a904f6ed90ecee8ff26b88f/e/265b505d5756f251893ce08e

Thanks in advance
Philipp

Best Answer

  • _anton_anton Member, Onshape Employees Posts: 410
    Answer ✓

    ChamferType is defined in chamfertype.gen.fs, which you'd need to import. export import(path : "onshape/std/chamfertype.gen.fs", version : "2411.0");

Answers

  • _anton_anton Member, Onshape Employees Posts: 410
    Answer ✓

    ChamferType is defined in chamfertype.gen.fs, which you'd need to import. export import(path : "onshape/std/chamfertype.gen.fs", version : "2411.0");

  • philipp_baumann477philipp_baumann477 Member Posts: 5
    edited August 15

    Thanks @_anton,

    Thank you for the quick answer.
    I almost expected something like this and I had searched the documentation for an import I might need but hadn‘t found anything.

    To avoid this type of issue in the future, where do I find what to import to use certain features?

    Thanks
    Philipp

  • _anton_anton Member, Onshape Employees Posts: 410

    Good question. I go to the FS standard library (https://cad.onshape.com/documents/12312312345abcabcabcdeff) and find a tab I'd expect to have the right import (chamfer.fs in this case). Then I see how it gets the import.

  • philipp_baumann477philipp_baumann477 Member Posts: 5

    Well, seems quite complicated, but at least I now know where to look.
    Thank you.

Sign In or Register to comment.