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

Hello, Self-taught on Solidworks I want to take advantage of this period of confinement to improve my design methodology.

Currently I fill my cartridges by hand, I don't enter the properties of my parts and assembly, etc... In short, I tinker on certain aspects, because I don't know how to do it

I would like to use the automatisms possible to work more efficiently and more rigorously. I just watched a tutorial on property forms .

I created a "reference" field, I created a "Designation" field, but how do I make the file name "reference + Designation"?
 Example: "0123 _ Nut"
Should I do the opposite, i.e. save my file under "0123 _ Nut" and indicate somewhere that the reference is the first part of the file name and the designation is the second part?

Or is it a bad idea to name the pieces that way?

Thank you for your help...

 

 

Hello

To do what you ask you have to use the macros provided by Dassault system "MyCADtools" there you will already have a minimum to fill your cartridge.

This cartridge will fill up only when you have filled in the data of your part, and when you make your crumbs in plan it will fill automatically.

Otherwise you have to create a customizable macro ...

Wait for me to find you a link or also look for your side LOL...@+.

we stick to the juice. AR.

Hello again so here is a link to a video on what you are asking, but I didn't find the customizable macron...

 

https://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=video&cd=1&cad=rja&uact=8&ved=0ahUKEwi-7Kaat7PoAhWLz4UKHfn_CzIQtwIIJzAA&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVR55Zhh1zTI&usg=AOvVaw2EPpHCNaqrvLD6Tfu2cwwM

Which version do you have of solid?

@+.

Hello again,

So here's the macro.. What to see

http://macro-solidworks.e-monsite.com/pages/macro/attributs-personnalisees.html

 

@+.

AR

Hello A.R.,

Bravo for your responsiveness and the links. I'm looking at all this and keeping you up to date
Otherwise, I have the 2017 Pro version

@+

Hello

In my SolidWorks files, the properties are in 3D (sldprt or sldasm).

The drawing has no custom properties.

I get the properties of the 3D directly, by placing in the title block or comments a property of the model by writing: $PRPSHEET:{property name}.

File --> property

In my SolidWorks files, the properties are in 3D (sldprt or sldasm). The drawing has virtually no custom properties.

So in the drawing, I get the properties of the 3D directly, by placing in your title block or the comments a property of the model by writing: $PRPSHEET:{property name}.

Hoping I have interpreted your question correctly.

Have a nice day

in the annotation on the plan 

$PRPSHEET:"DESIGNATION_FR"

Hoping I helped

Have a nice day.

2 Likes

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?