I have been working on a name and coding system that use the custom property tab. This is all good and is working well The problem comes with the BOM as the part numbers are made up of many custom properties. I'm well able to link one property but I can not work out how to link multipale property with out getting any errors.
Any help with this would be great as I really do not want to start the coding system all over again.
Regards,
James
James,
Sorry it took a while to get back to this.
I have attached a part file (SW2011) with some custom properties and an equation. This approach is right out of Josh Brady's SW World presentation "Advanced Equations using SW API and VBA Code." You should watch that video! Anyone have a link they can post?
This is very rough and only intended to show you the capability. The equation looks at the three input custom properties CP1, CP2, and CP3. If CP2 is blank, then it concatenates 1 and 3 with a dash. If 2 is populated, it concatenates all three with dashes in between. These are placed into the custom property CPConcatenate.
NOTE: Since SW won't let us put "Blank" data into a custom property, the equation is looking for a " " (space) in CP2 to get this example working. I expect a method to circumvent this issue has been developed by others on the forum... Anyone on that?
Try changing the text in the input custom properties. You have to close the property manager and rebuild the part to get the change to take effect.
Hope this gives you some additional ideas on a possible approach. If you can get the equations to do what you want, then you can imbed them and the necessary custom properties into you templates.
Daen