Hello again,
So here's the macro.. What to see
http://macro-solidworks.e-monsite.com/pages/macro/attributs-personnalisees.html
@+.
AR
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.
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
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
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...
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)
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
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.

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.
@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.