AnsweredAssumed Answered

Question about IF statements in Custom Properties.

Question asked by Caleb Eroh on Aug 10, 2018
Latest reply on Aug 14, 2018 by Caleb Eroh

Hello all! I have a question about changing where the default name references on a drawing sheet. To clarify, on the attached images you can see how our title block is set up. Under DWG. NO. the name is pulled from the file save name. Normally this works fine, but when there is a configuration it still shows the file name for the original part even though the newly configured part has features that were added. When there is a version 2 of a part, we would like the correct name to be automatically called out on the sheet. I know that we can set it up to automatically reference the configuration name, but it gets burdensome when we have dozens of parts that we would need to go into the configurations and rename each one from default to our part number and then rename the V2 parts on top of it. Its more streamline to automate this.

page 1.png   

I am not sure if this is possible, but here is what I would like to do. I would like to set it up so that the DWG.No. looks to the configuration name automatically then have a conditional statement saying something like this:


IF ($PRP:"SW-Configuration Name" = “DEFAULT” THEN use $PRPSHEET:"SW-File Name")


This way when there is a V2 of a part, it will automatically be called out as the correct name and if we didn’t create a configuration it would then pull from the file name. I am not sure where to start with this or how to set up the syntax. I understand that this is would be done in custom properties and probably a macro, but I want to start small.


Hopefully this makes sense. I am new to this side of Solidworks and am not sure how to go about this. I have been unable to find other peoples solutions to this specifically. If this is a question that has been answered I appreciate a link to that forum thread. Thank you in advanced for your help.


Best Regards