Embedded my name in Property Editor in a drawing

Good evening, I have a property file in SW drawings. He offers me a drop-down menu with the names of my colleagues. I would like to be able to have this same type of file with the possibility of filling the box with my name rather than having to choose each time from the drop-down menu. This will save me time and unnecessary mouse clicks.

Here's how it looks:

<Control Label="Drawn by" PropName="Drawn by" ApplyTo="Config" Type="ComboBox" UserDefineable="True">

<Data Path="" SourceType="List">

 <Item>Name1</Item>

<Item>Name2</Item>

</Data>

</Control>

I tried this configuration but it doesn't work, the box remains empty.

<Control Label="Drawn by" PropName="Drawn by" ApplyTo="Config" Type="Text" DefaultValue="MyName" Mode="Text" />

Do you have an idea of what is blocking it?

I'd also like to modify this box to make it suitable for a regular customer:

<Control Label="Client" PropName="CLIENT" ApplyTo="Config" Type="TextBox" DefaultValue="RegularClient" Mode="Text" />

Here too, the box remains empty.

Thank you in advance for your future answers


fichier_de_conf.jpg

Uses the "Property Form Editor" that comes with solidworks to edit the property file

https://blogs.solidworks.com/solidworksfrance/2016/06/comment-utiliser-lediteur-de-formulaire-de-proprietes-dans-solidworks-2016.html

2 Likes

Hello

Why not make a custom Drawing template with your tone in the custom properties of the document?

1 Like

From a general management point of view, it is better to modify the form file slightly by giving a default value.

For DefaultValue=, are you sure that you should give the value explicitly and not by its position in the list?

1 Like

Hello, thank you for your answers!

In the property form editor I can't increment a default value, indeed I have several boxes like general tolerance, spacing tolerance I always use the same tolerances, except for some special case.

 Being able to set the value will be a small time saver. I followed the tutorial, very constructive is very well done. This clarified several questions I asked myself and it greatly simplifies things. After that, because of the habit of coding in HTML, tags don't scare me so it was the shortest way for my ^^ thinking.

The solution creates a personalized and very interesting drawing and I had absolutely not thought about it, in fact it is this solution that I will retain.

I'll dig to tell him the location in the list to see what happens, if it's fruitful I'll repost a message to keep you informed

Thank you again for your answers

Have a good day everyone