Setting a default value in a title block

Hello 

I would have liked to know if it is possible to set up a default value in a title block that retrieves a part property value. 

Let me explain a little more, we have a cartridge in which we retrieve a property (for example the material with the value $PRPSHEET: "MATERIAL") of the part we are drawing.

On the other hand, if the drawing is used for something other than a detail plan of a part, the materials field that is not filled in should display a symbol by default (a dash for example)  to indicate that it is not applicable for the current drawing. 

Is it possible to modify the drawing to set this default value, which would be erased if there is a value.

Thank you in advance for your help. 

 

If it is not a detailed plan, then it is a general plan?

In this case, create a property in your sldasm that has the same name as your material property as a part file and set the value to a hyphen.

And if you save this in your assembly model file, you will only need to do it once.

9 Likes

Ideally, all properties should be in the parts and assemblies files. The drawing is just a visual.

As a result, as @Frédéric says, in a part file or an assembly where you don't have any Matter, you put a "-" in the properties of this file.

2 Likes

Hello

Do you use Smart Properties to manage your properties?
If so, you can make a conditional property.

 

Hello

You can create a layer that will gather all the information about the part planes (material, surface finish, surface treatment,...). This layer would be shown by default in your template.

From there, when you make a plan of a room, there is no action to be taken. If, on the other hand, you are on an assembly plan or a sketch, a pneumatic diagram,..., you will just have to hide the layer.

3 Likes

The best is to use 2 different models of Drawing: one for parts and another for assemblies. This allows for certain property layouts. Then make basemaps adapted to the parts and another to the assemblies with a cartouche that retrieves the appropriate information.

See my website:

http://tutoriel.solidworks.free.fr/crbst_56.html

http://tutoriel.solidworks.free.fr/crbst_168.html

 

Alan

1 Like

Hello

 

I was in the same situation as you and, for my part, I took the model of the new piece (piece. PRTDOT) and highlighted dashes in its properties by default. I overwrote the existing one and every time I start from a new room when I do the drawing, the dash is there by default.

For the existing it's too late but for your future part it's great.

If you need more explanation, don't hesitate.

 

Have a nice day

1 Like

Hello

Yes, it is possible. Here is a little tutorial to help you. Let me know if it's good.


modification_dune_valeur_par_defaut_dans_un_cartouche.pptx

Hello  

Thank you all for your answers, I think I'll try by going through a property saved in the assembly model as suggested by @Frédéric, @flegendre and @mickael.alves .

This should be the easiest thing to set up and make sure you don't forget it for new parts. 

 Have a nice day!