Austin Schukar wrote: ↑Fri Dec 17, 2021 12:59 pm
Maybe check
http://help.solidworks.com/2015/english ... awing.html as well?
Edit: How do I edit the hyperlink display text?
Edit2: I just tried, and it doesn't show the inserted dimension as "Marked for Drawing" since it now resides in a drawing....what the heck. Also tried
OwnerType Property (IAnnotation) with no luck. It determined the owner was a drawing view.
Nice1 Austin, Thanks
[re:Edit2]
Yep . those were my initial thoughts too but it's not as easy as I though it could be.
My end goal for this is to delete an inserted model item in the drawing and also go to the model and unmark for drawing.
[re:Edit1]
likethis
- image.png (2.58 KiB) Viewed 1796 times
[Waffle}
I have been able to write code to get at the inserted items but Im having problems down the rabbit hole.
the forum is blocking me from posting it so here's my snips.. Sorry if it looks a bit weird - I'm just experimenting with style.
I'm using some of my own extension methods which are mostly just casting the parameters and returns of the SWAPI calls
Very Foolishley I'm using c#8, there's an incompatibility warning but I'm just having fun with the language features that are new to me, like nullable types and switch expressions
I too discovered OwnerType Property, it is useful to check we have a view
when you get t'view you can get t'referenced doc. You can grab the dimension full name, config status and model path.
But after that Im in the weeds. Im not sure how to use the GetCorresponding Methods and which one to use to get to the actual display dimension in the part or assembly or component.. TBC no doubt!