I have a macro that generates a note (swNote As Note) of variable length and line count (based on the format used where I work before I got here, can't change that). I need to place the note in the bottom left corner of the drawing. Notes are placed using the upper left bounding point.
The GetTextPoint function returns the position of the upper left corner.
There's a GetUpperRight function which doesn't help
When I use the GetLineCount function it always returns 0 for some reason.
Using GetTextCount is inconsistent and sometimes doesn't count certain lines (including empty lines)
Does anyone know of a method to find the Bottom Left corner of a note object? Or just find the height of the bounding box?
This is an example of the kind of note I need to position based on it's lower left corner. There's an empty line above 3 in order to fit the symbol.
SolidworksApi/macros
INote.GetExtent will return a note's bounding box. The first three values in the array are the lower-left corner of the note. If you have the leader on, the bounding box will encompass the leader as well. You can turn off the leader using IAnnotation.SetLeader3 to temporarily turn off the leader, if you wish.
Keith
SOLIDWORKS API and PDM API Training and Services
Thanks! Works like a charm! The description in the object browser was really vague...