Sie sind auf Seite 1von 11

Linking Notes to Document Properties

To automatically insert information in a drawing, you can link note text in the drawing sheet or drawing sheet format to document properties. For the procedure to add a link in a note, see Link to Property. All SolidWorks documents have system-defined properties, including the following: Property Name SW-Author SW-Comments SW-Configuration Name SW-Created Date * SW-File Name SW-Folder Name SW-Keywords SW-Last Saved By SW-Last Saved Date * SW-Long Date * SW-Short Date * SW-Subject SW-Title Value Author field in Summary Information dialog box Comments field in Summary Information dialog box Configuration name in ConfigurationManager of part or assembly Created field in Summary Information dialog box document name, no extension document folder with backslash at the end Keywords field in Summary Information dialog box Last Saved By field in Summary Information dialog box Last Saved field in Summary Information dialog box current date in long format current date in short format Subject field in Summary Information dialog box Title field in Summary Information dialog box

* Properties that include date formats are language and region dependent. For details, see the Control Panel settings on your computer. Additionally, drawings have the following system-defined properties: Property Name SW-Current Sheet SW-Sheet Format Size SW-Sheet Name SW-Sheet Scale SW-Template Size SW-Total Sheets SW-View Name SW-View Scale Value sheet number of the active sheet sheet size of the active sheet format name of the active sheet scale of the active sheet template size of the drawing template total number of sheets in the active drawing document name of the active drawing view scale of the active drawing view

You can link a note to the properties of the model shown in the drawing (the SW-File Name property, for example, or a user-defined custom property in the model document). If the property value cannot be found, the note displays ERROR!<variable name>. To show or hide the error message, click View, Annotation Link Errors. A linked note can include additional text, and it can include links to more than one property. For example, to display the current sheet number and the total number of sheets, you can add this note: SHEET $PRP:"SW-Current Sheet" OF $PRP:"SW-Total Sheets" On the sheet, the property values are displayed: SHEET 1 OF 2 (on the first sheet of a two-sheet drawing)

Link to Property
You can link the value of a document property, a custom property, or a configuration-specific property to the text of a note. You can also link a property to rows of a table or BOM. If the value of the property changes, the linked text changes automatically. To link text to a property:

1. Click Link to Property in the Note Formatting toolbar. 2. Select the place to link from:

Current document. A property relating to the actual drawing document. Model in view to which the annotation is attached (drawings only). A particular view of a part or assembly in the drawing sheet where the note is attached. Model in view specified in sheet properties (drawings only). A part or assembly that is shown in a view. In the Sheet Properties dialog box, in Use custom property values from model shown in, select a view. Component to which the annotation is attached (assembly documents and part and assembly drawing documents). One component of many in an assembly view.

3. Select a property from the list of available properties, which depends on your selection in step 2 and where you create the note.

Part or assembly document. The list includes the properties of the model document, including any custom defined properties. Drawing sheet or sheet format. The list includes the properties of the drawing document, including any custom defined properties. Drawing view. The list includes the properties of the model document shown in the view. (If a view is selected when you insert the note, or if the note is attached to the model in a view, the note belongs to the view.) NOTE: All documents have system-defined properties. Drawings have system-defined properties that you can use to customize a sheet format. For more information on document properties in notes, see Linking Notes to Document Properties

4. To add a new custom property or to edit an existing one, click File Properties, and edit the properties on the Summary Information Custom and Configuration Specific tabs. 5. Select a system-defined or custom property from the list, and click OK. The linked text is the value assigned to the property to which it is linked. Prefixes for custom properties linked in notes are used as follows: Prefix $PRP: $PRPSHEET: Evaluated from: Current document Model in the view specified in Sheet Properties. If the model specified in Sheet Properties for custom properties is Default, then for notes belonging to drawing views, the model in the drawing view to which the note belongs is used. For sheet and sheet format notes, the first view in the FeatureManager design tree is used.

If a view is selected, the model for that view is used for all cases. $PRPVIEW: $PRPMODEL: Model in the drawing view to which the note belongs Component to which the annotation is attached

Links to dimensions are evaluated from the active document. If you selected View, Annotation Link Variables, and you add or edit a note in the sheet format, a variable for the property name is displayed (in the form $PRP:"property name" or $PRPSHEET). When you return to editing the sheet, the value of the property, if found, is displayed. If the property value cannot be found, the variable for the property name is displayed on the sheet. If the appropriate document for custom properties cannot be located according to the designations above, the following rules apply:

In edit sheet mode, all sheet format notes are blank. All sheet and drawing view notes show their property names. In edit sheet format mode, all sheet format notes show their property names.

NOTE: When a note in a drawing is linked to a custom property or a dimension and then the property or dimension is deleted, the note displays ERROR!<variable name>. The parametric text is retained, and you can double-click the note to see the text. As soon as the property or dimension is available, the note updates to the correct value. Other items in the note are not affected. You can choose whether to display the link error. Select or clear View, Annotation Link Errors. To access Custom and Configuration Specific properties: 1. Click File, Properties. 2. In the dialog box, click the Custom tab for properties that apply to the entire document, or the Configuration Specific tab for properties that vary from one configuration to another. 3. If you define a property on the Configuration Specific tab, select a configuration in Applies to. 4. Add, edit, or delete properties as described in the procedures below. 5. Click OK. To add custom properties: 1. Click in the first blank cell under Property Name, then type a name or choose one from the list. 2. Select a Type from the list.

To move between cells in the table, press Tab or Enter, or click in the cell you want to move to. 3. Under Value / Text Expression, enter a value for the custom property that is compatible with the selection in the Type cell.

For Value / Text Expression, you can type values, or you can select values from the list, which contains:

SolidWorks parameters (Mass, Density, and so on) Global variables

Linked dimension names

If you add a date (for example, DrawnDate), as a custom property, the software does not require you to type a date for Value / Expression. However, if you do not type a date, Microsoft interprets the empty field as 1/1/1800 when you view the document's custom properties in Windows Explorer. 4. Press Tab or Enter. The value of the property displays under Evaluated Value. To link a custom property value for a part to the BOM Quantity 1. After adding a custom property, type or select the custom property name under BOM Quantity. 2. Click OK. To add associative dimensions into custom properties: 1. 2. 3. 4. Open the part and display the dimensions to add to Custom Properties. Under Property Name, type a name or choose one from the list. Select Text from the Type list. Click the dimension in the graphics area. The <dimension_name>@<feature>@<model_name> is displayed under Value / Text Expression (for example, D1@Extrude1@Block.SLDPRT). 5. Place your cursor at the end of the dimension name and add additional text, such as millimeters. NOTE: Values are cumulative unless you clear the content in the Value / Text Expression cell. Cumulative values enable you to include dimensions, units, and other text. For example: Click one dimension in the graphics area, type x in the Value / Text Expression cell, and click additional dimensions in the graphics area to display <dimension_name>@<feature>@<model_name> x <dimension_name>@<feature>@<model_name>, and so on. 6. Click any cell in the table. The value of the property displays under Evaluated Value. Any dimension included in Custom Properties is updated when you modify the dimension in the part.

To edit custom properties: 1. In the table, click the Property Name, Type, or Value / Text Expression that you want to change. 2. Edit as needed. 3. Press Enter. NOTE: This modifies the custom properties for the current document only. Edit the global custom properties with the Edit List dialog box.

To delete custom properties:

1. Click the number in the leftmost column to highlight the property that you want to delete. 2. Click Delete. NOTE: This deletes the custom properties from the current document only. Delete the global custom properties with the Edit List dialog box. To add mass properties: 1. Enter a Property Name for the mass property. 2. Select Text from the Type list. 3. Under Value / Text Expression, select the appropriate mass property from the list.

Mass properties use the following, system-generated format: SW-<mass_property>@ @ <configuration>@<model_name> Example: SW-Density@@large@Block.SLDPRT 4. Press Tab or Enter. The value of the property appears under Evaluated Value.

NOTES:

Mass properties for non-active configurations do not update until you make the configuration active. If you specify a non-active configuration in Applies to, an asterisk (*) appears under Evaluated Value, and a footnote states Calculated the next time the configuration is active. Units of measure for mass properties are specified in document properties. To access document properties, click Tools, Options, then on the Document Properties tab, click Units. Units of measure for mass properties are specified under Mass property units.

You can customize drawing sheet formats to match your companys standard format. The sheet formats provided with the SolidWorks software do not conform to any standard. Drawing templates contain notes that link to properties. These properties extract information from the part, assembly, or drawing. System properties are automatically available when you insert a note. You enter custom properties on the Summary Information - Custom tab for drawing, part, or assembly documents as appropriate. If you create custom sheet formats, avoid overwriting the standard sheet formats that are included with the software. When you install a SolidWorks service pack, the standard formats are overwritten including your customized formats. Store custom sheet formats in a separate directory instead. System properties linked to fields in the system sheet formats SW-File Name (in DWG. NO. field) SW-Sheet Scale SW-Current Sheet SW-Total Sheets Custom properties of drawing documents linked to fields in the system sheet formats The following properties are populated by the properties.txt file in install_dir/lang/english. CompanyName CheckedBy CheckedDate DrawnBy DrawnDate EngineeringApproval EngAppDate ManufacturingApproval MfgAppDate QAApproval QAAppDate Custom properties of parts or assemblies linked to fields in the system sheet formats The following properties are populated by the properties.txt file in install_dir/lang/english. Description (in TITLE field) Weight Material Finish Revision Properties that are populated by the properties.txt file in install_dir/lang/english Description PartNo Number Revision Material Weight Finish StockSize UnitOfMeasure Cost ManufacturingApproval MfgAppDate QAApproval QAAppDate Vendor VendorNo Client Project Status DateCompleted

MakeOrBuy LeadTime CheckedBy CheckedDate DrawnBy DrawnDate EngineeringApproval EngAppDate SolidWorks special properties

CompanyName Department Division Group Author Owner Source IsFastener

SolidWorks special properties are part of every drawing file: SW-Author SW-Keywords SW-Comments SW-Title SW-Subject SW-Created Date SW-Last Saved Date SW-Last Saved By SW-Sheet Name SW-Template Size SW-Sheet Scale SW-Sheet Format Size SW-File Name SW-Folder Name SW-Long Date SW-Short Date SW-Current Sheet SW-Total Sheets (total sheets in drawing file)

To edit the drawing sheet format: 1. Click Edit, Sheet Format, or right-click any blank area on the drawing sheet, or the sheet icon in the FeatureManager design tree, and select Edit Sheet Format. 2. Edit the sheet format as described below. 3. Click Edit, Sheet, or right-click any blank area on the drawing sheet, or the sheet icon in the FeatureManager design tree, and select Edit Sheet. To move, delete, or add lines or text:

To delete, click the line or text and press the Delete key. To move, click the line or text and drag to a new location. To add lines, click Line on the Sketch toolbar, or click Tools, Sketch Entities, Line.

To add text, click Note on the Annotation toolbar, or click Insert, Annotations, Note. Specify the text properties, then click to place the text in the desired location.

Table Anchor Points


The standard sheet formats supplied with the software include anchor points for placing the tables in specific locations on the sheet. To set the anchor points, expand Sheet Format for the sheet in the FeatureManager design tree. Right-click one of the anchors, select Set Anchor, then click where you want the anchor point on the sheet. When you set the anchor point from the FeatureManager design tree, you are automatically in Edit Sheet Format mode. When you finish, you are no longer in Edit Sheet Format mode. You can also right-click a sketch point in the sheet format, and select Set as Anchor, one of the table anchors. The anchor point is highlighted, and its visibility toggles when you click the icon.

OLE Objects
To add objects from other applications, such as bitmaps of your company logo, standard note text from a file, and so on, click Insert, Object. You can either create a new object or insert one from a file. Objects can be linked or embedded in drawing sheet files.

NOTES:

When you use design tables in the SolidWorks software, it is important to format the tables properly. The parameter syntax (header cells) are not case sensitive. Legal Values (body cell) Default if Value is Left Blank

Parameter Syntax (header cell) Parts only $configuration @part_name $configuration @feature_name Parts and Assemblies $comment $description $partnumber $state @feature_name dimension @feature_name - or dimension@sketch_name $hw-size

configuration name configuration name

not evaluated not evaluated

any text string any text string any text string Suppressed, S Unsuppressed, U any legal decimal value for the dimension any value listed in Size in the Hole Wizard PropertyManager parent configuration name any text string Suppressed, S Unsuppressed, U Suppressed, S Unsuppressed, U Suppressed, S Unsuppressed, U any text string 32-bit integer specifying RGB (red, green, blue) color any legal decimal value for the mass any legal decimal value for the coordinates of the center of gravity, in the format x, y, z See Tolerance Keywords

empty configuration name configuration name Unsuppressed not evaluated

smallest hole size available

$parent $prp @property $state @equation_number@equations $state @lighting_name $state @sketch_relation@sketch_name $user_notes $color $sw-mass

property is undefined property is undefined Unsuppressed Unsuppressed Unsuppressed not evaluated zero (black) The calculated value of mass in the Mass Properties dialog box. The calculated value of mass in the Mass Properties dialog box. NONE, or for a derived

$sw-cog

$tolerance @dimension_name

and Syntax in Design Tables. Assemblies only $displaystate display state name

configuration, the tolerance value of its parent.

For new configurations, Display State-1. For existing configurations, the name of that configuration's most recently active display state. Not fixed (floating)

$fixed

Yes (or Y) for fixed No (or N) for not fixed (floating) Resolved, R Suppressed, S configuration name

$state @component_name<instance> $configuration @component_name<instance>

Resolved The name of the configuration that is active when you create the cell. NOTE: If the component uses a derived configuration, and the value is left blank, the configuration used is linked to its parent.

$never_expand_in_BOM Obsolete parameters $show@component_name<instance>

Yes (never expand) No (allow to expand)

No

$SHOW is obsolete. See Visibility of Components in Design Tables.

The following table lists the functions and operators that you can use in parameter expressions. Symbol + * / ^ \ SQR () ! Description Add Subtract Multiply by Divide by raise to power of Integer divide by square root prioritizes evaluation of an expression Factorial Example 3+4=7 9-4=5 3*6=18 9/2=4.5 4^5=1024 9\2=4 SQR(64)=8 5*(1+2)=15 5!=120 Fact(5)=5x4x3x2x1=120 25%=0.25 MIN(1,2,4,5,7)=1 MAX(3,8)=8 SIN(pi)=0 COS(pi)=-1 TAN(pi)=0 ASIN(1)=1.570796 ACOS(-1)=3.141593 ATAN(0)=0 SEC(0)=1 CSC(1)=1.188395 COT(1)=0.642093 ABS(-8)=8 EXP(3)=20.0855 EXP2(3)=8 EXP10(3)=1000 LOG(16)=2.77259 LOG2(8)=3 LOG10(1000)=3

% MIN MAX SIN COS TAN ASIN ACOS ATAN SEC CSC COT ABS EXP EXP2 EXP10 LOG LOG2 LOG10 NOTES:

Percentage Minimum value Maximum value Sine Cosine Tangent Arc Sine Arc Cosine Arc Tangent Secant Cosecant Cotangent Absolute value e to the power of 2 to the power of 10 to the power of Natural logarithm Log base 2 Log base 10

The trigonometric examples in the above table assume that "pi" has been defined as a parameter. Functions and operators are not case sensitive.

Das könnte Ihnen auch gefallen