Configurable Variable in Part Name

sam_ettinger011
sam_ettinger011 Member Posts: 5 ✭
I have a part that uses configuration variables (an extrusion length for 8020) and I would like the part name to update with the variable length in it. Does this feature script exist? I found a feature script for "part number", but haven't found one for "part name". 

Comments

  • John_McCormick
    John_McCormick Member Posts: 9 ✭
    I don't think that you have to depend on feature-script for this.  In the configuration panel, there is a second tab where you can add a part number (and other variables) to configurations.  This is available for both assemblies and parts.


  • MichaelPascoe
    MichaelPascoe Member Posts: 2,965 PRO
    @Evan_Reese created a feature for naming parts. It may be useful for this.
    https://forum.onshape.com/discussion/13832/configure-part-name-feature

    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚
  • sam_ettinger011
    sam_ettinger011 Member Posts: 5 ✭
    @Evan_Reese @MichaelPascoe when I tried clicking his link, I got this error message, "Failed to load document for version. Resource does not exist, or you do not have permission to access it."
  • MichaelPascoe
    MichaelPascoe Member Posts: 2,965 PRO

    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚
  • sher1ock
    sher1ock Member Posts: 2 EDU
    That is exactly what I need, but for some reason it won't work on a sheet metal model. If I select any other part it works fine, but when the sheet metal part is selected, it doesn't actually rename it...
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    A sheet metal part is not a real “part” unless it has been “finished”. Create a Finish sheet metal part feature then try. 
    Senior Director, Technical Services, EMEA
  • billy2
    billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,206 PRO
    @sam_ettinger011

    Did you get this working? I too want 8020 lengths in an assembly BOM. I'm not sure feature script will do it since it's stuck in a partstudio. I was hoping for something in an assembly that can interpret various instances in the assembly and tell me a config value based on an instance and then have it show up in the BOM.


  • michael_hudzik
    michael_hudzik Member Posts: 2 PRO
    I am trying to do exactly what @billy2 mentioned. I've seen some posts about people requesting an "Assembly Script". 

    I have an assembly with several... several (>100) configuration combinations. I was hoping to build a smart string for the part number based on the configuration parameters but I am struggling to figure something out. As of right now, for my assembly, the only way I know how to populate all of the part numbers is to hard code them for each configuration. I need to do this because when exporting these assemblies to a PLM (e.g. Duro), I want the PLM to catch that the part already exists and not have someone create a new part number for an existing assembly. 

    To me, this is the single most important reason of being able to build a smart string in the part number field of an assembly.

    cc: @alan_baljeu