Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I have been trying to add an iLogic rule to populate a custom iProperty using an external excel spreadsheet. I have got it working once, but if i save the assembly as something else the custom iProperty doesn't update. Ilogic compares the Project iProperty and then finds this value in the excel file and returns another value in the corresponding column. I have attached the code below.
SyntaxEditor Code Snippet
'Populate iProperties from filename iProperties.Value("Summary", "Title") = (Mid(ThisDoc.FileName(False),11, 100)) iProperties.Value("Project", "Project") = (Left(ThisDoc.FileName(False), 4)) iProperties.Value("Custom", "SYSTEM") = (Mid(ThisDoc.FileName(False), 6,4)) 'Project number variable ProjectNo = iProperties.Value("Project", "Project") 'Spreadsheet rows start on the 3rd row GoExcel.TitleRow = 3 'compare the project number variable against work order number column in spreadsheet. i = GoExcel.FindRow("C:\Vault Work\Design Projects\Title Block Info.xlsx", "Sheet1", "Work Order Number", "=", "ProjectNo") iProperties.Value("Custom", "Client") = GoExcel.CurrentRowValue("Client") iLogicVb.UpdateWhenDone = True InventorVb.DocumentUpdate()
Many thanks
Nigel
Solved! Go to Solution.