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.
evCollision Clashtypes?
Chris_D_Mentes_001
Member, csevp Posts: 103 PRO
Okay so I'm playing around with the evCollision command but it seems odd to me that there is 8 "clashType" enum values but no matter how I arrange my tool and target bodies I can't seem to get all 8 outputs. So far I've figured out how to get: INTERFERE, ABUT_NO_CLASS, TOOL_IN_TARGET and TARGET_IN_TOOL. For some reason rather then returning a map with clashType NONE it just returns an error when there's no collisions. Even if there is just one vertex shared between two bodies the clashtype is still ABUT_NO_CLASS rather then EXISTS. And I understand what ABUT_TOOL_IN/OUT_TARGET in theory but in practice I can't seem to replicate that result (I assume one body is completely enclosed by the other but they share a face, line or vertex?). Can anyone tell me what I'm doing wrong here?
Also I can use the results of the evCollision Array maps when it comes to the .tool .toolBody .target and .targetBody but .type returns an error. I assume this is because type is a reserved word but why use it as a feild name then? also ."type" doesn't work nor does .(type) . To print the collision type to console I had to print the entire array entry.
https://cad.onshape.com/documents/c8eef2271809c4293325c9b1/w/d82cceae829e190d1649e512/e/e0f1b2c585964eae1de0629c?renderMode=0&uiState=63b52900cbacbd58b9943d51
Link share with onshape support enabled.
Also I can use the results of the evCollision Array maps when it comes to the .tool .toolBody .target and .targetBody but .type returns an error. I assume this is because type is a reserved word but why use it as a feild name then? also ."type" doesn't work nor does .(type) . To print the collision type to console I had to print the entire array entry.
https://cad.onshape.com/documents/c8eef2271809c4293325c9b1/w/d82cceae829e190d1649e512/e/e0f1b2c585964eae1de0629c?renderMode=0&uiState=63b52900cbacbd58b9943d51
Link share with onshape support enabled.
Tagged:
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,714https://cad.onshape.com/FsDoc/type-tags.html
It provides a lot of flexibility creating/evaluating key/value pairs using strings.Senior Director, Technical Services, EMEAI1
Answers
It provides a lot of flexibility creating/evaluating key/value pairs using strings.