Message 1 of 2
iLogic looping through dimensions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a Excel datasheet with the annotation values..
F (column) |
10 |
20 |
30 |
I have a drawing with overwritten annotations, the overwritten annotations are the same letter as the Excelcolumns, for example F for the width of a keyslot.
I want to create a loop in which the annotation names of my drawings get compared to the Excel column names, if they match, i want iLogic to fill in the rowvalue of that column. I guess I need to create a loop inside a loop for this to work? I'm stuck at the point below, i think i need to create some type of collection or array?:
Dim oDDoc As DrawingDocument = ThisDrawing.Document
Dim oSheet As Sheet = oDDoc.Sheets.Item(1)
Dim oDimension As DrawingDimension
'create some kind of collection with Excel headers? (A, B, ... Z)
For Each oDimension In oSheet.DrawingDimensions
oDimension.HideValue = True
'For Each oExcelHeader in oExcelHeaders collection?
'If oDimension.Text.Text = oExcelHeader
' oDimension.Text.FormattedText = GoExcel.CellValue(Excelheader & currentrow)
'Else
'End if
'Next
Next
Hope the goal is explained clear enough