Even though SOLIDWORKS Composer is not a drafting program, it still allows you to insert dimensions in your projects, for the times you’d like to show size or position in the instructions. To add a dimension select the appropriate type from the Author tab in the ribbon.
In this example, I’ve added a diameter dimension to the hole in the part by selecting the dimension tool and selecting the hole diameter. But I don’t care about the actual dimension, so much as I need to highlight a thought, or need to add a variable to communicate a point.
When the dimension is placed, the actual value is used. That dimension is, like every other entity in SOLIDWorkS Composer, an actor with properties. To change that value to a variable, select that dimension, and find the Measurement/GD&T section of the Properties pane (it may be collapsed so don’t let it hide from you). Uncheck the Enable box next to Display Value to remove the actual value.
To replace the value with a variable string, you can enter the strings and symbols in any or all of the Pre/Middle/Post Symbol/String boxes. Please note in the screen capture below that any of the boxes will enter variables on the same line. It is not possible (that I’ve found to this point) to enter the variables on separate lines.
If you wish for multiple line variables, I encourage you to visit the SOLIDWORKS Customer Portal and submit an Enhancement Request for that additional functionality.