Message 1 of 2
trying to use iLogic to update the same parameter in multiple parts...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to update the same named parameter in several existing parts in an assembly. I'm using this code:
'Define the open document Dim openDoc As Document openDoc = ThisDoc.Document InventorVb.DocumentUpdate() 'Look at all of the files referenced in the open document Dim docFile As Document For Each docFile In openDoc.AllReferencedDocuments 'format file name Dim FNamePos As Long FNamePos = InStrRev(docFile.FullFileName, "\", -1) Dim docFName As String docFName = Right(docFile.FullFileName, Len(docFile.FullFileName) - FNamePos) Parameter.Quiet = True Parameter(docFName, "Smart_Height") = 1000 Next
The absolutely MADDENING thing is that it seems to be working in complete reverse. NONE of my existing parts in the assembly change. The parameter ONLY changes in any NEW part I add AFTER running the rule. Keee-rypes, what is going on here?