Message 1 of 2
iLogic rule open part from drawing, wont trigger event of part
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Question:
I am trying to update my part from the drawing.
The part contains 2 rules that run on event trigger when opening and saving the part.
The part gets parameters from an Excel database.
I want to be opening my drawing and than update the part automatically with a new rule.
This part of the rule opens, saves and closes the part but it wont trigger the rule of the part.
I cant trigger it with the "Run other" types in the edit rule list.
Who has got an idea how to make this work?
(Drawing filename=Part filename= Part number)
SyntaxEditor Code Snippet
Try doc = ThisDoc.Document Dim oFD As FileDescriptor Dim CurFileName As String 'get the path and file name of the selected item CurFileName = doc.FullFileName 'defines backslash as the subdirectory separator Dim strCharSep As String = System.IO.Path.DirectorySeparatorChar 'get the path of the folder containing the file Folder_Location = Left(CurFileName, Len(CurFileName) - Len(Name)-4) ThisDoc.Launch(Folder_location & ".ipt") ThisDoc.Save ThisApplication.ActiveDocument.Close(True) Catch End Try