How to make <Nom du="" fichier=""> = <Reference article=""> + < Designation article></Reference></Nom>

I'm in SW 2017 too

Me 2018 SP4...

Well, I installed the trial version of My CAD Tools.

Let's say I'm creating a new part with an article code of "0123" and a designation of "Nut". I would like one or the other of the options below:

 - I name the part "0123_Ecrou"  and automatically the article code is filled with "0123" and the designation with "Nut"

- Or I enter "0123" as the article code and "Nut" as the designation, and the part is automatically renamed "0123-Nut"

Is it possible?

Hello

You can test the myCADtools SOLIDWORKS 30 days for free here:

 https://www.visiativ-solutions.fr/mycadtools-solidworks/

There are more than 50 utilities that will allow you to automate your tasks.

Hoping this helps,

Have a nice day

2 Likes

Yes, you can concatenate values.

For the title of my plans I concatenate the designation in French and the designation in English

note in this way in a note

$PRPSHEET:"DESIGNATION_FR" $PRPSHEET:"DESIGNATION_EN"

 

http://help.solidworks.com/2018/french/EnterprisePDM/Admin/t_creating_SOLIDWORKS_PRP_PRPSHEET_links.htm

 

 

1 Like

http://help.solidworks.com/2017/french/solidworks/sldworks/hidd_select_property.htm

 

Hoping it will help you.

 

 

Thank you. 

It's progressing! I managed to concatenate my filename as I wished.

Now I stumble on the automatic saving of the file with the property value "File name" but it doesn't work...

 


capture.png

Personally I find it not very practical to name the parts with a code + part name. If you want to rename the title of your piece or change the function, the filename is overwritten. Personally, we just use a code and we get the Title property from the designation of the part in a windows explorer collonne in order to see the name of the part (which is absolutely not related to the file name)

1 Like

Hello

Feel free to consult the online help of the myCADtools tools you are trying. Regarding the SmatProperties tool, look:

https://help.visiativ.com/mycadtools/2020/fr/SmartProperties.html

Good luck

1 Like

Hi all

@sbadenis: Top! Thank you for sharing my experience.  Sometimes I go in a direction, and in the end I realize that it's not the best. Self-taught, I am interested in all the best practices to use, or mistakes to avoid.

The reason I wanted to have the part name in the file name is to better identify the parts in the assembly tree, because a tree with references is not practical.

Is there a way to get the designation in the assembly tree?

Hello

 

You can put the designation in the description of the component if you don't use it, or use configurations that correspond to the designation you want.

1 Like

Yes, this is what we do as  by showing the description of the components (see mandrake explanation):

 

And in windows explorer:

And so the code is more than enough to identify the content of a room thanks to this trick.

And nothing prevents you from completely transforming a nut into a screw, axle... without the filename suffering.

 

2 Likes

@mandaragore & @sbadenis

Thank you! This corresponds exactly to my needs! 
I also had a pb of terminology, between "Description" and "Designation". For me, "carb screw" was a designation. 

If I understood correctly: "carb screw" is the "description" and "M4x30mm" screw is the designation, correct?

So, by checking "Show description of components", I now get what I wanted... Thank you

 

On the other hand, in windows explorer, even if I add the "title" or description column, I don't  see the description appear...?!

How do I associate the " Description" field in SW with the "Description" field in Windows Explorer?

 

You have the component name, component designation, and configuration.

 

On the images of sbadenis, the component has the name of PI_052899, description "Spacer", configuration (default).

 

Logic would have your component name be 0123, description "Carb screws", configuration (M4x30mm)

 

After I am not on your computer I can't be more precise, at least I think.

On the other hand, in windows explorer, even if I add the "title" or description column, I don't  see the description appear...?!

How do I associate the " Description" field in SW with the "Description" field in Windows Explorer?

We must not confuse 'Description' which is filled in in the properties (I think) and 'Title'.

 

The Title appears in the Summary:

 

On the other hand, recreate a question if you want to continue on this subject.

For the title as we use smartproperties (MyCadtools utility, just enter Title=$ Designation in the property tab of the table of contents and then the Title is filled with the designation. (We use Designation and not description following previous company for many years)

 

There may be another method to do it but it's the easiest for us!

For the description it seems that you can directly add a description column in the explorer (right click on the name of the column and Other then description), we were clever because we have been using designation for years instead of description.

Hello sbadenis,

Great, it allowed me to fix this last detail. I was able to add a description column in Windows Explorer and I actually have the desired field displayed.

Great,  A big thank you!

I'm now getting into customizing the shot cartridges. I found different tutorials on this subject. It should do it. Otherwise, I will open a new post on this forum which is very responsive and also effective.

Have a nice day