Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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
philipp_baumann477
Member Posts: 5 ✭
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
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
0
Best Answer
-
_anton Member, Onshape Employees Posts: 410
ChamferType
is defined inchamfertype.gen.fs
, which you'd need to import.export import(path : "onshape/std/chamfertype.gen.fs", version : "2411.0");
1
Answers
ChamferType
is defined inchamfertype.gen.fs
, which you'd need to import.export import(path : "onshape/std/chamfertype.gen.fs", version : "2411.0");
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
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.Well, seems quite complicated, but at least I now know where to look.
Thank you.