I have a custom property and I would like to write an equation in order to get the part number assigned to that custom property, anyone knows which would be the correct equation?
how are you assigning your part number?
If the part/assembly hasn't multiple configurations, it's the filename without extension. In the part/assembly has multiple configurations is the configuration name.
Have you looked into using the custom property tab? You could create a simple radio button for the part number to use on one radio button, the filename (not sure how on this one as I've not done it) on the second radio button the configuration name.
I'll try to explain a little bit better what I'm trying to do: in a drawing, when you insert a BOM Table, one of the columns you typically insert, is the "PART NUMBER" (other might be element number, description, quantity....).
The value used to fill the column "PART NUMBER" in this BOM Table of the drawing is what you set for each configuration of each part or assembly:
Depending on what you select the "PART NUMBER" will be the document name, the configuration name or any specific name wrote manually.
What I would like to do is write an equation to get the value of the "PART NUMBER" and write it in a custom property.
It isn't an equation you are needing...
In your configurations tab, right click on the "default" config and click on "properties"
In the "Bill of Materials Options", set the part number displayed when used in a bill of materials to be "Document Name"
All of the other configs should be set to "Configuration Name"
Hi Xavier, I'm very familiar with the outcome you are after. I'm not so familiar with the method you're wanting to go about it. Considering you'll be needing to assess whether the file has configurations in the first place would lead me to think this is not an equation within the custom property dialog, but a macro.
First set the list of parameters (properties or global variables) you wont to include into part number and the structure of part number.
Retrieving data ...