×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Displayed Part Number

Displayed Part Number

Displayed Part Number

(OP)
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?

RE: Displayed Part Number

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

RE: Displayed Part Number

Quote:

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

RE: Displayed Part Number

(OP)
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".

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources