Change MateConnector Name in FS

Max_Kluge
Max_Kluge Member Posts: 22 PRO
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

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    Unfortunately, no. Please create an improvement request in the category on the right ==>
    Senior Director, Technical Services, EMEA
  • Max_Kluge
    Max_Kluge Member Posts: 22 PRO
    Thanks for the fast answer. I opened a new request 
  • _marco_zenti
    _marco_zenti Member Posts: 3 PRO

    It's been a while since this post but there seems to be no change so far, I'd like to up-vote the request, i tried searching it but i can't find it, could you point me to it please @Max_Kluge