Dynamic Annotation's Location
Dynamic Annotation's Location
(OP)
Hello All,
I would like to make my annotation, located in the center of a rectangle, on a 2D drawing to relocate when I modify one side of the rectangle.
Any guru in VBA can give me few little hints, please. TIA.
I would like to make my annotation, located in the center of a rectangle, on a 2D drawing to relocate when I modify one side of the rectangle.
Any guru in VBA can give me few little hints, please. TIA.






RE: Dynamic Annotation's Location
Chris
Systems Analyst, I.S.
SolidWorks 06 4.1/PDMWorks 06
AutoCAD 06
ctopher's home (updated 06-21-06)
RE: Dynamic Annotation's Location
I create an annotation with the text like "Front Panel". Every time that I change the dimension of the rectangle I have tomove the text manually to fit in the center of the rectangle. I hope you understand what I mean. Thanks.
RE: Dynamic Annotation's Location
Either way, you can add some sketch centerlines attached to the text location "point" and the rect, dim the lines, hide the dims.
Or use a Design Table.
Chris
Systems Analyst, I.S.
SolidWorks 06 4.1/PDMWorks 06
AutoCAD 06
ctopher's home (updated 06-21-06)
RE: Dynamic Annotation's Location
RE: Dynamic Annotation's Location
If a 'geometry' answer is acceptable, it will depend on the answer to the question asked by ctopher (twice) ... which, by the way, you have ignored.
If the annotation is in a 3D model part in the form of text in a sketch, the position can be kept central by drawing a line in the sketch which is constrained to the edges of the rectangle, using the line as the guide curve for the text and using the Centre Align option. (See Sketch Text in the help files)
If the annotation is in a 2D drawing view in the form of a note, then we'd need to know what the "rectangle" you refer to is.
RE: Dynamic Annotation's Location
I made the design table to import the dimensions from Excel to Solidworks. It works fine except after the changes I have to move those texts manually to the new location.
The annotation does not have a coordinate or node that I can assign a relationship or dimenison to the drawing (maybe I don't know how).
If you could show me the way to link the text (i.e. annotation) to one side of the rectangle then I can assign a dimension or make a point then create a relationship with my rectangle.
I'm sorry for my explanation but english are not my strong point. Thanks.
RE: Dynamic Annotation's Location
Is it a 2D rectangle drawn in a sketch in a drawing view? Is the text added to the drawing view? Is the text just the title of the drawing view? (Like Front View, Side View, Plan, etc)
or ...
Is it a 3D rectangular part with the "Front Panel" and "Rear Panel" cut-extruded or scribed into it using the [b]Sketch Text" function? If it is this one, see my first post for a solution.
No need to apologise for your English. It is far better than my version of your language.
RE: Dynamic Annotation's Location
RE: Dynamic Annotation's Location
1. Smart dimension between the mid-points of the sides of the rectangle in the drawing (any two sides will do) - make sure center dimension text is turned on.
2. Delete the Dimension Text <DIM> and replace with the text required (Front Panel)
3. Move the dimension to the approximate center of the rectangle in the other (non-centered) direction.
4. Right click on the dimension and go to properties/display and uncheck display extension lines and dimension lines.
5. Also make sure that this dimension is driven instead of driving.
Viola... you have a note which always re-locates to the center
RE: Dynamic Annotation's Location
RE: Dynamic Annotation's Location
RE: Dynamic Annotation's Location
This should work for other then 0-90 angles as well.
I just thought of another way to do what you are asking...
You could make a block with your text and add a point which you can constrain (coincident relation) to a virtual center (constructed on a hidden layer).
RE: Dynamic Annotation's Location
RE: Dynamic Annotation's Location
When I say virtual center.. I just mean some construction geometry that you put on a hidden layer. For example, construct a diagonal line with a point in the middle of it. This will be the middle of the rectangle and stay associative to it.
RE: Dynamic Annotation's Location
RE: Dynamic Annotation's Location
Sorry, been away over the weekend.
Glad you got it to work.
Good luck.
Chris
Systems Analyst, I.S.
SolidWorks 06 4.1/PDMWorks 06
AutoCAD 06
ctopher's home (updated 10-27-06)
RE: Dynamic Annotation's Location