Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

$DESCRIPTION in SW2006 ??

Status
Not open for further replies.

dciadmin

Mechanical
Jul 17, 2002
11
Hi,

Any way to use the design table to populate the properties of the configuration (configuration properties ... not the custom properties)? I tried using $DESCRIPTION but it did not work. It gave me a "Column heading $DESCRIPTION contains invalid keyword .. " error. I can load the comment field below it with $COMMENT but I don't seem to be able to load the description field above it. I know how to load the custom property with $PRP@Description.

I don't see $Description in the help for 2006 but it does seem to be in the help for later versions. Is there another way to load the field in 2006?

thanks!
 
Replies continue below

Recommended for you

Easiest way to get fields into a DT:
1. Make several different configurations, differing on the values, suppression states, and other fields (such as descriptions) you want to be in the DT.
2. Create/Edit the DT and select the new fields to be included in the DT.

Then it is a simple matter to copy rows to create new configs and change the values as needed.

- - -Updraft
 

Hi Updraft ....

I am ok with getting fields into the design table in general ... I just can't seem to figure out what the column header needs to be in order to fill out the description field.

I just tried putting in a few configurations and filling in the description field and comments manually. Then doing an insert ... design table and using Auto Create. It brought in the comment field and and, of course, the configuration name, but did not bring in the description.

I am beginning to think that maybe it got fixed/added in later versions ...
 
The column heading should be $PRP@Description



Deepak Gupta
SW 2009 SP4.1 & 2007 SP5.0
MathCAD 14.0
Boxer's Blog
 
The $DESCRIPTION header works for me. (SW2011-SP0), and is automatically included if the Auto-create option is used when creating the DT.

Double-check the spelling in the DT header.

Take note that if you manually add a second $DESCRIPTION column, the one nearest the RH side will be the one which drives the Config properties.
 
Gupta: the $PRP@Description is for the custom properties field ... and that one I can get to work fine. Thanks for the input though.

CorBlimeyLimey: Yeah, I figured it probably would work fine for the later versions because I checked online for help and got the $Description header from the 2010 or 2011 online help.

I have checked the spelling multiple times and the clincher is that the error message that comes up also offers a list of acceptable headers that can be used ... $Description is not in the list. Doesn't appear to be part of Solidworks 2006 ... or at least not the service pack we are stuck with.
 
Not is the VB code to do it. Not sure if that will help you...
Dim swCustPropMgr As CustomPropertyManager
Dim value As Long
Dim strDesc As String
strDesc = "Input Description Here"
value = swCustPropMgr.Set("Description", strDesc)
 

thanks for the code dsheets05 ... I will certainly give it a try! Might be a fine workaround.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor