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.

Change MateConnector Name in FS

Max_KlugeMax_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:

 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

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    Unfortunately, no. Please create an improvement request in the category on the right ==>
    Senior Director, Technical Services, EMEAI
  • Max_KlugeMax_Kluge Member Posts: 22
    Thanks for the fast answer. I opened a new request 
Sign In or Register to comment.