3 Answers
3Thank you, I have solved this problem. The existing API does not have a way to directly solve my problem. My idea is the same as yours. I need to get the height of each annotated text. I need to pay attention to whether the text is on the left or right, top or bottom, otherwise there will be errors.
I think he means the outline of the view. Use the method GetOutline…
I know this method called GetOutline, but it’s not what I’m looking for. I want to get the biggest box of all the annotations.
I don't see anything that the API exposes that will do this without a lot of workaround. It seems that it may require iterating over all of the annotations attached to the view and getting positions/sizes. With that info, estimating the overall boundary should be at least close.
– BigCrazyAlJep, done this before, you will have to get the views box first then get all notes, annotations attached to it, then get the locations of those and create a matrix were you can extract coordinates of all those annotations etc and then cross-reference them with the initial views box and use the matrix for to calculate the outside dimension for everything attached to the view using the data in the matrix and create a new border.
– QuadmanxThanks, your suggestion is very good, I am curious why soildworks does not directly provide a similar API
– liuning

Can you be more descriptive with what you're looking for? Your entire post is only 10 words...
– BigCrazyAl