- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Afternoon Fellow iLogic Coders,
I'm hoping someone in this forum can help me. I am trying to create a rule that checks the vault status, which if approved offers the designer the chance to create a pdf of the manufacturing drawing. Assuming the designer wants the manufacturing drawing the keep clear watermark is replaced by the manufacturing stamp (see drawing) and then saved as a pdf. Two questions are asked once the pdf exists: 1. Does the designer want a preview of the drawing? and 2. Does the designer want the file location of the drawing opened? Once answered the manufacturing stamp is replaced by the keep clear watermark. I have broken down this complicated rule into four sections. These are listed in the top left side of the attached drawing.
I'm struggling with section one that reads: In the drawing select 'View 1' and confirm it is a part or sheet metal part (generically speaking an ipt file) If it is an ipt file continue onto next rule and if not exit sub. Here is the code I have found on the forum so far:
Dim doc As DrawingDocument = ThisDoc.Document
Dim oSheet As Sheet = doc.ActiveSheet
Dim oView As DrawingView = oSheet.DrawingViews.Item(1)'Select View for Item number
ThisApplication.CommandManager.DoSelect(oView)'Select View
@JelteDeJong & @Curtis_Waguespack I thought this might be in your sweet spot. Any help or advice is as always greatly appreciated,
Regards,
Edward
Solved! Go to Solution.