- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I'm trying to get the part document of a "Preparation" placed drawing view. On the image below, 10796-07-001-00.iam is the main weldment document. VIEW719 is pos.8 and VIEW720 is pos.11 (10796-06-001-11.ipt). These two are placed on the drawing via Place Views - Base - Model - Preparation(select part), see second image below. What I'm trying to get with iLogic is the part document of each placed view.
Some context - I have automated the placement of views of all occurrences in an assembly. I would now like to check if a view of an occurrence already exists so it doesn't place another view.
I've tried with this:
Dim oViewDoc As Document = oView.ReferencedDocumentDescriptor.ReferencedDocument
and this:
Dim viewModelDoc = ActiveSheet.View("VIEW720").ModelDocument.DisplayName
But it gives me the main assembly document and not the part document.
I suppose there's a relatively simple way to get the referenced part, but I can't find it.
I'd really appreciate any suggestions.
Best regards.
Solved! Go to Solution.