How do I combine "canned" SW custom properties into an additional custom property?
Here is my attempt, but no success. What do I need to do differently?
You have the right idea. I can't see what is causing your Part Name to not evaluate correctly.
Thanks for your reply.
I've been talking with our VAR to try to figure this out. They would like to know what version and service pack of SW you are running.
Would you be so kind as to attach the file you created to generate the image above. The VAR is still trying to figure this out and has asked for the file.
Thanks in advance for your help.
Ray, add the properties like you're adding and then click OK. Then recheck the properties and they should update.
Will see if I can add a video later as I can't see the file attachment option right now.
I don't think I saved that file. I think I just started a new one, created a quick part and then took a screen shot of the custom properties.
So this morning I figured I would just recreate. It would only take a minute... And I am seeing exactly the behavior you show in your screen shot. Now I am perplexed as to what is driving the difference.
Thanks anyway. If you do get this to work (as above), please forward me the file.
Interesting behavior... With the forum not allowing attachments right now I will have to add my files later.
I was NOT ever able to recreate the functionality shown in my attached image above. That's goofy in itself.
If I manually entered the value of the material thickness in a custom property, then combining that CP with the Material CP gave correct results. However, if I linked the value of the material thickness either to a dimension or the global variable Thickness, then the error appears. Interestingly, if I REVERSE the order of the two custom properties in the combining property, i.e. place the material before the thickness, the CP evaluates correctly.
It seems the text of the material type behaves, but the numbers of the thickness cause problems. When I manually entered the thickness it was of type "text".
I also reverted to a technique of manipulating custom properties by embedding VBA code in equations as discussed here: https://forum.solidworks.com/message/343940?sr=search&searchId=69e2d639-1a03-4929-a924-062e95849d1b&searchIndex=17#343940
This technique no longer seems to work correctly. The VBA appears to be evaluating to the custom property's Value / Text Expression instead of the Evaluated Value. The end result is exactly what we have been getting. Perhaps Josh Brady has found yet another work-around.
Now that I can attach again, here is my file recreation...
Hi Ray, here is the video showing the process.
Here is what I'm trying to accomplish. The "canned" values inside of solidworks are what I want to combine. see attached.
Seems like a kind of bug or odd behavior. Even the file from Daen Hendrickson shows the same behavior.
Please report to your VAR and use the file from Daen Hendrickson
Thanks for looking at this. I've alerted my VAR, and they are pursuing it.
I had the same Problem. It also appears if you use values of global variables or Formulars to Combine new properties.
The bug is known, there has already been created a SPR: Solidworks SPR 913716, but it's Level is medium, because there are not enough People attached.
If you think combing without limitations is a Basic requirement (as I do), please asked your VAR to get this SPR solved asap.
I am running SW2013 x64 SP3
Deepak and Daen,
I want to thank you both for looking into this matter. Hopefully our VAR can escalate this to SW and get a solution.
Here is something that might work for you. I have posted on this technique before but just couldn't seem to get it working last week.
Just to clarify: This method is not directly supported by SolidWorks. Credit for all of this technique goes to Josh Brady. He found that you can insert all manner of VBA coding into the equation editor and get some pretty cool results. This technique uses a VBA formula in the equation editor to grab your two custom properties, combine them, and set that value to a third custom property. Every time you rebuild the model this VBA equation will run.
I have attached a SW2013 example file and a text document with some VBA code.
The setup steps:
Note, the next time you open the equation manager it will insert several unwanted double quotes into your VBA formula as it tries to "fix" it. Don't touch the formula. It will still run even all monkeyed up. However, if you need to edit the formula, you will need to remove all of the unwanted quotes and restore the formula back to original form before you can update. The best method is to perform your edits in Notepad and just overwrite what is in the equation editor. I like to put a copy of the working formula in the custom property summary area for later retrieval if needed.
Hope this helps.
It is now fixed in SWX 2016.
Can you confirm the SP in which it has been fixed.
That's the Point where Im wondering: 913716 is not fixed according the SPR list, but I saw it working during a training class for admins and we tested it with my files. Installed 2016 for own Evaluation yesterday, but not in the Office. Will post a screenshot next week.
Retrieving data ...