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.
Change MateConnector Name in FS
Max_Kluge
Member Posts: 22 ✭
Hello Everyone
I created a FS that can set multiple MateConnectors to a body. The only problem for me right now is: the Mate connectors created are named "Mate connector1", "Mate connector2" and so on.
Is there a possibility to name them after the variables in the positions i put them to?
I have height and angle so I would like to name the connector: height ~ "mm - " ~ angle ~"°"
I tried setProperty but thats not working. Even renaming connectors by hand is not possible.
Following a short look into how the connectors are created:
I created a FS that can set multiple MateConnectors to a body. The only problem for me right now is: the Mate connectors created are named "Mate connector1", "Mate connector2" and so on.
Is there a possibility to name them after the variables in the positions i put them to?
I have height and angle so I would like to name the connector: height ~ "mm - " ~ angle ~"°"
I tried setProperty but thats not working. Even renaming connectors by hand is not possible.
Following a short look into how the connectors are created:
for (var i, konnektor in definition.konnektor)
{
const origin = vector(dataDurchmesser / 2 + konnektor.versatz, 0 * mm, konnektor.isFlipped ? definition.hoehe - konnektor.abstand : konnektor.abstand);
opMateConnector(context, id + "mateConnector" + i, {
"coordSystem" : rotationAround(line(WORLD_ORIGIN, Z_DIRECTION), konnektor.winkel) * coordSystem(origin, Y_DIRECTION, X_DIRECTION),
"owner" : part
});
}
Thanks!
BR
Max
Thanks!
BR
Max
0
Comments