I would like to be able to indicate the dimensions (and thickness) of a square tube in an annotation, but where it gets complicated is to do it automatically.
If I change the dimensions of my tube, the annotation should be able to follow.
You can retrieve the desired dimensions in a property of the file (Menu: File/Properties)
example:
Size: D1@Esquisse1 x D5@Extru.-Thin1 (you can rename the dimensions to make it easier to read the 3D to have L@Esquisse1 x Ep@Extru.-Thin1).
You can retrieve the name of the dimensions in the property by clicking on them or obviously by having noted their name before accessing the properties of the part. This property can be in the "Customize" tab or in "Configuration Specific"
Then in the case of a drawing of your tube, you can retrieve the property in a note in the form: $PRPSHEET:"Dim"
If it's in the case of an assembly drawing and you attach the note to your tube: $PRPMODEL:"Sun"
If you place a view of your tube in the assembly drawing, you can put an annotation in that view and use: $PRPVIEW:"Dim"
In the case of the welded mechanic, you often already have a property with this information. This is often the "Description" property (if the profile file was created correctly -_-). you can call this property with an annotation attached to the pipe with $PRPWLD:"Description"
The advantage of going through the properties? You don't need to pose a side in the drawing.