CUSTOM PROPERTIES FOR FILE NAME
CUSTOM PROPERTIES FOR FILE NAME
(OP)
Hi,
Company std for file names is as follows "xxxx_yyyy.slddrw". "xxxx" is our PN and "yyyy" is other PN seperated with underscore. I use custom properties for title block information. Our title block part number section is for "xxxx" only.
I want to have a prefix "$PRP:" for custom properties linked to file name but that will evaluate "xxxx" only.
Is there a way to accomplish this task? Hope this is clear.
Thanks in advance,
SWCADMAN
Company std for file names is as follows "xxxx_yyyy.slddrw". "xxxx" is our PN and "yyyy" is other PN seperated with underscore. I use custom properties for title block information. Our title block part number section is for "xxxx" only.
I want to have a prefix "$PRP:" for custom properties linked to file name but that will evaluate "xxxx" only.
Is there a way to accomplish this task? Hope this is clear.
Thanks in advance,
SWCADMAN






RE: CUSTOM PROPERTIES FOR FILE NAME
this will use the file name of the part.
I am assuming that you are wanting to use this in the custom properties of the solid not in the drawing
RE: CUSTOM PROPERTIES FOR FILE NAME
xxxx-yyyy-nnn for (real - actual hardware) part names. But drawings are only xxxx-yyyy and the -nnn bit is for different configurations. Ie: different (but similar) parts detailed on the same drawing.
For reasons I wil not go into, we have both SolidWorks part (file) names done as xxxx-yyyy-nnn and xxxx-yyyy with different configurations -nnn (go figure!!!) Anyway it all worked out fine.
Actually now (note the tense of the last sentence)we use SmarTeam PDM and we have auto-annotation of Drawing formats done through it and some custom API's.
I was - and he did. So at least I didn't get coal.....
OK, OK, It's a reference to my holiday sig. "Be naughty - Save Santa a trip..."
RE: CUSTOM PROPERTIES FOR FILE NAME
RE: CUSTOM PROPERTIES FOR FILE NAME
The only way I think is possible, is to use an Excel based DT, and, with string functions, calculate the property (I am supposing that you have a xxxx_yyyy.sldprt). Then link the title block to that property.
Regards
RE: CUSTOM PROPERTIES FOR FILE NAME
Kind Regards,
SWCADMAN
RE: CUSTOM PROPERTIES FOR FILE NAME
Good Luck
RE: CUSTOM PROPERTIES FOR FILE NAME
=LEFT(MID(CELL("filename"),SEARCH("",CELL("filename"))+1, SEARCH("",CELL("filename"))-SEARCH("[",CELL("filename"))-1),4)
Now all I have to do is get it to work with SW custom properties...