• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

automatically fill out properties from the file name

  • Thread starter Thread starter Prof.
  • Start date Start date

Prof.

Guest
exists a solidworks way to compile two custom properties according to file name?
for example in my files I have two properties: code and description.
if to the file I give the name 1234 - pop, I would like that code to be completed with 1234 and description with poplar.
Can you do that?
 
it takes patience for answersHowever you don't do it with the normal solidworks tools. you must pass through macro, but then your information is not enough.
 
Last edited by a moderator:
I can make you a small macro if you explain my needs
If you can help me.
I would need a macro that from the file name extracts the first 7 characters and assigns them to a property called code and extracts all characters from 11th onwards and assigns them to a description property.
I hope it's possible and explained my needs well.
However if you make me a draft then, if possible, I study and optimize with the editor of the macros (which I still can not use).
Let me know if you need clarification.
Bye.
 
I use the property tab builder, you have to create a basic file part, together or table where you put the
properties that interest you and where to fish them, then that file calls it back in every solid model and he writes the properties you need.

It's very useful and convenient, but you better find yourself a manual to understand how it works.

prp.webp
 
I use the property tab builder, you have to create a basic file part, together or table where you put the
properties that interest you and where to fish them, then that file calls it back in every solid model and he writes the properties you need.

It's very useful and convenient, but you better find yourself a manual to understand how it works.

View attachment 65666
and how do you recall in the properties you only want a portion of the file name?
 
using the pdm I recall the properties of the pdm, but there should be the possibility to recall only the first letters or the last ones.
 
the thing is feasible because I use it, however the builder tab also works without pdm, you just have to put the properties in the file and those you can insert with the planning drive.
 
I use the property tab builder, you have to create a basic file part, together or table where you put the
properties that interest you and where to fish them, then that file calls it back in every solid model and he writes the properties you need.

It's very useful and convenient, but you better find yourself a manual to understand how it works.

View attachment 65666
the property tab builder I use it already, it is very comfortable but cmq error is always around the corner. I would prefer better and more reliable automatism.
 
the thing is feasible because I use it, however the builder tab also works without pdm, you just have to put the properties in the file and those you can insert with the planning drive.
you are asking for automation, if you have to fill out the tab builder so much it is worth writing directly in the file.
 
If you can help me.
I would need a macro that from the file name extracts the first 7 characters and assigns them to a property called code and extracts all characters from 11th onwards and assigns them to a description property.
I hope it's possible and explained my needs well.
However if you make me a draft then, if possible, I study and optimize with the editor of the macros (which I still can not use).
Let me know if you need clarification.
Bye.
Hi.
Forgive me, but I'm working on it now.
I have a question
I have to take the first 7 characters to assign them to the code property.
From the code, I have to extract from the eleventh onwards.
the question is: if the code is made with the first 7 characters, is it not 7 characters the code?
 
Hi.
Forgive me, but I'm working on it now.
I have a question
I have to take the first 7 characters to assign them to the code property.
From the code, I have to extract from the eleventh onwards.
the question is: if the code is made with the first 7 characters, is it not 7 characters the code?
always from the file name you have to take from 11th onwards and assign it to a "description" property.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top