How to display a global variable value in custom property

Hi everyone,

I creat a global variable ''L'' for Length, I would like this ''L'' can be display in custom property and can be modified, how to do it ?

SolidworksParts And Features
Answers 5
GS
GS 2017-07-21 Best Answer

You can have a custom property linked to a global variable (click as shown below and global variables will the in the drop-down list), but I don't believe you can edit them from the custom property.

comment imagecomment image
JM
JM 2017-07-21

you would need to use this syntax in the value box.  "$VALUE@"Global Variable Name Here"@equations".

You only need to replace the text:

Global Variable Name Here

"$VALUE@"L"@equations"

Check out this post: https://forum.solidworks.com/thread/115171

VU
VU 2017-07-21

If Custom Property linked to Global Variable, the only way to change the Custom Property is to change Global Variable.

And vice versa.

GS
GS 2017-07-21
<p>Jason Martin wrote:</p><p></p><p>you would need to use this syntax in the value box. "<span style="color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;">$VALUE@"Global Variable Name Here"@equations".</span></p><p style="padding: 0px; min-height: 8pt;"></p><p>You only need to replace the text:</p><p>Global Variable Name Here</p><p style="padding: 0px; min-height: 8pt;"></p><p>"<span style="color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;">$VALUE@"L"@equations"</span></p><p style="padding: 0px; min-height: 8pt;"></p><p><span style="color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px;">Check out this post: <span style="color: #222222; font-family: Verdana;"><a _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="115171" data-objecttype="1" href="https://forum.solidworks.com/thread/115171" data-community-id="1">https://forum.solidworks.com/thread/115171</a></span> </span></p>

That applies to linking in a design table.  It's very easy to link a global variable to a custom property in the custom property dialog box, as I showed.  The person who posted the question didn't say anything about design tables.

JM
JM 2017-07-21

whether he mentioned design table to not, this is a solution he can use. Forgive me, I used the wrong syntax without using a design table.

without a design table, the syntax would be L@Part1.SLDPRT

L = the global variable

Part1 = the name of the file you are using.