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

Auto-populating Part Numbers and/or Names

Aidan_BenyshAidan_Benysh Member Posts: 4 PRO
As best I can tell, part names are automatically generated by Onshape when parts are initially created with the nomenclature Part [Number in design hierarchy]. Part numbers can be created automatically as well such that you can also use a numbering scheme that has a continuous counter that goes up for any part that is released, or for any part which the part number is manually applied in the same format. Bearing this to be true, I have the following issue: 

In my case, my company does not use release management at this time, therefore it is required to add the part number (through the auto generate button) to parts individually or at the BOM level in assemblies. This is a step that could be perceived as "skippable" to some. In order to save a not insignificant amount of time, is it possible to automatically populate the part number with the pre-formatted sequential numbering scheme that is set? (I have only found information stating that it is not possible to auto-populate the part name, but little information on the part number) I have seen in these forums many people finding work arounds utilizing the part name with a preset excel sheet or a conjunction external PDM software but this is not something I would be interested in; I feel like it could be inherent to the product.

The reasoning behind this may reveal a different method of attack for the true problem I have; once parts are complete in Onshape we will export them into our ERP software (Revision management is handled within the ERP software at this time, hence why we aren't as worried about it while designing in Onshape). Within this software every part must have an individual name as to not overwrite previous logs associated with any existing parts. You can imagine there are a lot of "Part 1"s.

Therefore I see two possible paths:
Option 1: We could simply use Onshape's built in part/assembly numbering system which would retain a constant count of parts designed keeping each individual as a property level that could then be referenced under the export rules to label them with "uniqueness" upon export. In this case the part number would be the extent of the characterization of the part.
Option 2: We could define custom properties that could be referenced within the export rules to characterize the part, along with an individual string of characters or numbers. The best way I can figure to create an individual string would be a timestamp for the export time on each part. That being said, an issue arises when exporting multiple files for reference by the guys on the shop floor as when comparing the filenames/part numbers for a DXF vs a STEP file they could have contrasting numbers, normally a very bad thing. 

I'm mainly looking for opinions on what method may been seen as more "robust", or if there is a better custom property method that could be used during export to generate individual yet characteristic file names?

Thanks in advance.

Answers

  • Options
    Aidan_BenyshAidan_Benysh Member Posts: 4 PRO
    Since writing this I have learned the following, both option one and option two above have their issues due to an unforeseen problem. I've been testing different methods and the current system is as follows. 
    We have implemented the automatic part numbering schema and have turned on the release management in order to better utilize the part numbering feature. With the part numbering feature we have also applied export rules to export STEP files with parts following this format: ${partNumber}-${revision} therefore with our part number system we would be looking for a file with the name "P1201-A" as an example.
    This works fine for singular parts, the problem appears to be with assemblies. When exporting an assembly I can't seem to figure out how to get the components within the assembly to come through to the next software with their assigned part number. The assembly would come through fine (with the expected part number) as "ASM1201-A" however the parts come through with their (un)assigned name, "Part 1" or whatever random name is applied to them. Our assembly export rule looks like this:


    With the category set to all categories I believed it would apply to assemblies, subassemblies and parts underneath the scope of assembly, is this correct?
    At this time the scope for parts also has this same export rule.

    Inherently this also returns to my original question and one that was posed in 2021: 
    https://forum.onshape.com/discussion/16972/part-names-part-numbers

    Under the linked forum post there are work arounds but not perfect solutions to the problem asked. 
Sign In or Register to comment.