Message 1 of 6

Not applicable
07-11-2016
04:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello again Community.
I'm now in front of a task i cannot handle and I need your help!
My task is to make an ILogic rule that can go into all parts of the assembly (and subassemblies) and change given custom parameters.
The parameters i want to change is called "Kunde" and "Ordrenr".
After the rule is set, I will place it under a form so it will be quick to change.
The closet thing I could find was this..
Dim openDoc As Inventor.Document Dim docFile As Inventor.Document Dim DrawingDoc As DrawingDocument Dim FNamePos As Long Dim docFName As String Dim iDesc As String DrawingDoc = openDoc openDoc = ThisApplication.ActiveDocument iDesc = iProperties.Value("Project", "Kunde") For Each docFile In openDoc.AllReferencedDocuments ' Check if referenced document is a Part file. If it is, fill in the SK field. If docFile.DocumentType = kPartDocumentObject Then 'If Not Mid(iDesc, Len(iDesc) - 4, 4) = "<SK>" Then ' iDesc = iDesc + "<SK>" 'End If FNamePos = InStrRev(docFile.FullFileName, "\", - 1) docFName = Mid(docFile.FullFileName, FNamePos + 1, Len(docFile.FullFileName) - FNamePos) iProperties.Value(docFName, "Custom", "SK") = "(SK)" End If Next iLogicVb.UpdateWhenDone = True
With best regards, Mikael Nanke
Solved! Go to Solution.