Message 1 of 3
Title Block Update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone
I would like to update my title blocks for a project via Excel
Can someone please help me with an iLogic Rule?
What I’m trying to do is run the rule on a drawing.
I have an excel spreadsheet with all my data. The 1st Column has all the Data Names, IE Drawing Number, Client, Project ect. Each column after that is related to each drawing.
What I need is to have the rule look at the file name of the .IDW find that in the 1st row. Once found all the other data will be below that.
I have attached an example of the spreadsheet.
Also here is a rule that sort of works. This only get the data from the 2nd column. also need it to find the spreadsheet that is in the same folder as the drawing
Thanks heaps everyone
SyntaxEditor Code Snippet
GoExcel.Open("S:\Projects\2017\17024 - Oxley Creek\17024-03\Project Data.xlsx", "Sheet1") RowStart = 1 RowEnd = 100 For countA = RowStart To (RowEnd * 0.01) + RowStart If Not String.IsNullOrEmpty(GoExcel.CellValue("A" & RowEnd)) Then RowEnd = RowEnd + 100 Else Exit For End If Next For rowPN = RowStart To RowEnd If String.IsNullOrEmpty(GoExcel.CellValue("A" & RowPN)) Then rowN = rowPN - 1 Exit For End If Next For oRow = RowStart To RowN Dim oName As String = GoExcel.CellValue("A" & oRow) iProperties.Value("Custom", oName) = GoExcel.CellValue("B" & oRow) Next GoExcel.Close InventorVb.DocumentUpdate()