[SOLIDWORKS 2018] Automatically name file from Custom Properties

Hi all

 

I wanted to know if it was possible to automatically name my file name from Custom Properties?

 

Let me explain a little about the procedure I want to follow:

1. New PART or ASSEMBLY file

2. I fill in my Custom Properties :

     > Part No. (PieceName)

     > TypePiece

     > Subassembly No. 1 (SS1)

     > Subassembly No. 2 (SS2)

     > Project No. (ProjectNum)

     > Part No. (NumPiece)

     > Version

3. File/Save As...

And there the file name is already pre-filled with the format "PartName"_"SS1""SS2""NumProject"-"NumPiece"-"Version"

And all I have to do is choose the location of the recording and keep the possibility to change the name of the file if necessary.

 

Is there a possibility to get this "easily"?

 

Thank you in advance for your answers.

 

Have a good day to you.

Hello

If you have the MyCAD suite, it is possible using SmartProperties.

In the smartproperties settings , go to settings, then to automatically rename the file. And choose the name of the desired property.

 

2 Likes

I do have MyCAD and SmartProperties but I haven't really managed to do what I want (despite a tutorial found, I know, I'm useless :-(  )

 

A little more explanation in the procedure to follow would help me a lot.

In this case, you must first create a custom property that concatenates all your properties. Then choose this new property as the file name.

 https://help.visiativ.com/mycadtools/2019/fr/Concatenation1.html (online help concatenated function)

 https://help.visiativ.com/mycadtools/2019/fr/Renommerautomatiquementledocumen.html (online help automatically rename document).

2 Likes

The simplest is the smartproperties as recommended by @ Frédéric .

Another macro possibility, this one must look like what you ask (not tested)

I used SmartProperties but I put the concatenation directly in the basic "PieceName" field from the custom properties (See Attached File).

The only "problem" is that after filling in my fields in the Custom Properties tab (on the right of the screen), I have to open Smartproperties and validate with the checkmark for it to be taken into account.

 

Thank you all for your answers, they put me on the right track.


smartproperties.jpg

Hello Gisto,

why not enter your properties directly in SmartProperty, it's much simpler and it allows you to do very interesting things.

 

1 Like

My problem is that I need the custom properties to automatically fill in the already existing plan blocks and bills of materials, but not everyone in the company (we are a very small entity) has SmartProperties.

If that changes, I'll certainly go through it but for the moment I can't.