Linked Properties
A linked property holds a SOLIDWORKS formula instead of a fixed text. SOLIDWORKS calculates the value, for example the mass of the part or its material.
Some formulas:
| Formula | Value |
|---|---|
SW-Mass@Part.SLDPRT |
The mass of the part |
SW-Material@Part.SLDPRT |
The material of the part |
$PRP:"SW-File Name" |
The file name |
"D1@Boss-Extrude1@Part.SLDPRT" |
A dimension |
In the grid you see the value, with a chain symbol at the right of the cell. Point at the cell to see the formula.
Why SOLIDWORKS must save them
Vitreo writes the formula to the file. Only SOLIDWORKS can calculate the value and store it in the file.
1. Vitreo writes the formulaMass =
The cell shows [SW save required].
"SW-Mass@Bracket.SLDPRT"The cell shows [SW save required].
→
2. SOLIDWORKS saves the fileIt calculates the mass and stores the value in the file.
→
3. Vitreo reads the file againThe cell shows 2.35
- After you type or assign a formula, the cell shows [SW save required].
- When you click Save, Vitreo asks to open these files in SOLIDWORKS. See Save Properties Dialog.
- After the save, Vitreo reads the files again and shows the values.
To add a linked property:
- Select the cells.
- Open Property Manager Tools > Linked Properties and double-click a property. See Linked Properties Tab. Or type or paste the formula into the cell.
- Click Save.
Good to know
- When you paste or type a formula into the cell of another file, Vitreo changes the file name inside the formula to that file.
- A material formula works on parts only: "Materials can only be set on part files."
- Find and Replace skips cells with a formula.
- A value that mixes text and a formula is plain text, not a formula.
- A file written by another program can hold a formula without a value. See Values Not Stored.