- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thank you Jelte.
I looked through your blog and it looks like you already have your GeometryIntent in most cases. I want to obtain there GeometryIntent via the AttributeManager. It works fine for Parts but it doesnt for an Assembly.
I was in the meantime trying to use the GetIntent() method which is what you did here: http://www.hjalte.nl/24-ilogic-adds-dimensions-to-drawings
My first draft looks like this:
Dim Sheet_1 = oSheet Dim VIEW1 As DrawingView For i = 1 To Sheet_1.DrawingViews.Count MessageBox.Show(Sheet_1.DrawingViews.Item(i).Name.ToString()) If Sheet_1.DrawingViews.Item(i).Name.ToString() = "ANSICHT72" Then VIEW1 = Sheet_1.DrawingViews.Item(i) End If Next Dim namedGeometry1 = VIEW1.GetIntent("Nutenseite1") Dim namedGeometry2 = VIEW1.GetIntent("Nutenseite2")
But I get the error that GetIntent() is not found for DrawingView.
I feel like I am really close with my original code to a solution its just that I struggle to move from the assembly level to the parts level - especially being able to execute
oPartDoc.AttributeManager.FindObjects("*", "*", "Nutenseite1").Item(1)
with oPartDoc already being the correct PartDocument within my AssemblyDocument but I do not know how I can access that part (I could do a search by name but I dont know how to do that)