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.

New Custom Feature: Rename Beams

SethFSethF Member Posts: 127 PRO
This is mostly just recycled code from the beams feature. In our case, it's really nice to have the beams named accurately, including the length, which obviously changes with move faces or what have you. So the idea is that you put this feature after all of your manipulation to the beams, it remeasures the length, and sets a new name.


Here's an example:

1) Make some beams

2) Mess up their lengths

3) Rename them:

As you can see in the example, you have the option for a second unit in case you would like to show the length in both inches and mm, for example. As you can also see in the example, it has the short coming of not being able to change your naming options for individual Beam features. Initially I had made my own copy of the Beams feature, added some new attributes for me to use, and then grabbed those in rename. That way I could add to the name that was already selected (minus the incorrect length). But I didn't want to have to add in code every time the Beam feature is updated. So for now, using this feature, if you want the Standard listed for one beam, you get the Standard listed for ALL the beams..

I'm a programming nooob. So. Sorry if the code is ugly.


Sign In or Register to comment.