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.

Options

Reset Name of part

MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
edited March 2018 in FeatureScript
How do I reset the name of a part so that I can configure it using featurescript?

EDIT: Also reset any of the other properties.
mb - draftsman - also FS author: View FeatureScripts
IR for AS/NZS 1100
Tagged:

Best Answer

Answers

  • Options
    konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    did you tried setProperty() with PropertyType.NAME?
  • Options
    MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    edited March 2018
    did you tried setProperty() with PropertyType.NAME?
    @konstantin_shiriazdanov

     Yes, I did, but since I had already set the name, it didn't work
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • Options
    MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
    edited March 2018
    Maybe someone from Onshape has a way. Maybe @lougallo or @NeilCooke

    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • Options
    jelte_steur814jelte_steur814 Member Posts: 77 PRO
    This question is still relevant: @NeilCooke or @lougallo? is there a way to reset (even manually to a default OS partname having once renamed the part?

    my current terrible work around is to supress the feature that initially creates the part, remake it in a new feature and then work through the whole feature tree to update all the references. only then i remove the original feature and can i use the 'partname featurescript'

    kind regards

    Jelte

  • Options
    NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,367
    @jelte_steur814 - you're going to kick yourself....



    Senior Director, Technical Services, EMEAI
  • Options
    jelte_steur814jelte_steur814 Member Posts: 77 PRO
    hahaa indeed! :#  thank you!
Sign In or Register to comment.