Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displayed Part Number

Status
Not open for further replies.

gp13

Mechanical
Sep 27, 2007
156
If you right click a configuration, you can specify what the part number will be in the BOM. Generally we have our part number as the file name, but occasionally it is impossible (i.e. using a "/") so we must use "User Specified Name". Is there a way to link a note in a drawing to this name? Also, is there a way to get the info in a macro?
 
Replies continue below

Recommended for you

That parameter is called $PARTNUMBER. I attempted and didn't find an way to directly grab that value within a drawing for an annotation, but here is a work around:

Create a configuration specific custom property in your part called PartNumber (or something convenient). Then autocreate a design table and get the PartNumber property in the design table as well as the $PARTNUMBER attribute. Using Excel functionality, set the value of the PartNumber property equal to the value of the $PARTNUMBER. Kinda klugy, but it works.

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
Generally we have our part number as the file name, but occasionally it is impossible (i.e. using a "/") so we must use "User Specified Name".

I'm not sure exactly what you want to do, I don't know if you want to use a configuration name in the BOM or if you want to us "/" and it will not let you.

I will tell you how we handle configs here and see if that helps.

On the configs we use the "User Specified Name" and enter the following in there:
Code:
$PRP:"SW-File Name"-$PRP:"SW-Configuration Name"
This will give you the file name-config name in the BOM.

For example, part #: 800000 with 3 configs can show up as
800000-1
800000-2
800000-3

Also, on our drawings template (edit sheet format) we have the following for our part number:

Code:
$PRPSHEET:"SW-File Name"-$PRPSHEET:"SW-Configuration Name"
That will make the file name-config name show up on your title blocks.

Don't want the file name, strip that from the code.

Flores
 
ShaggyPE:

That works, yes, but I would prefer something a little more direct. However if that is the only way, then I guess that is what I will have to do.

smcadman:

I know how to get the file name and/or configuration name into a note, but I am trying to link to the "User Specified Name".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor