iLogic rule open part from drawing, wont trigger event of part

iLogic rule open part from drawing, wont trigger event of part

peter.ensing
Enthusiast Enthusiast
332 Views
1 Reply
Message 1 of 2

iLogic rule open part from drawing, wont trigger event of part

peter.ensing
Enthusiast
Enthusiast

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

 

 

0 Likes
333 Views
1 Reply
Reply (1)
Message 2 of 2

Mark.Lancaster
Consultant
Consultant

@peter.ensing

 

Programming needs, questions, or issue should be asked in the Inventor Customization Forumhttps://forums.autodesk.com/t5/inventor-customization/bd-p/120.  I will have the moderator relocate it there to better suit your needs.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.