Message 1 of 4
Not applicable
04-05-2016
02:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greeting, I am having success with making Inventor do what I want up till this point. I am successful at pulling in a Table from excel and putting it on a drawing (see following code).
The problem is I am not sure how to search a column for a value(s), and then only have the row that contains said value(s) display in the table.
I can get the values from the source spreadsheet, but not sure how to make the cypher.
The excel file is attached.
Any direction on what to try or code would be much appreciated.
SyntaxEditor Code Snippet
' Set a reference to the active drawing document Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument ' Set a reference to the active sheet Dim oActiveSheet As Sheet oActiveSheet = oDrawDoc.ActiveSheet ' Create the placement point for the table Dim oPoint As Point2d oPoint = ThisApplication.TransientGeometry.CreatePoint2d(25, 25) ' Create the table by specifying the source Excel file ' This assumes that the first row in the Excel sheet specifies the column headers ' You can specify a different row using the last argument of the AddExcelTable method Dim oExcelTable As CustomTable oExcelTable = oActiveSheet.CustomTables.AddExcelTable("K:\Inventor\ADTLETMODELDATA.xlsx", oPoint, "Evaporator Information")
Solved! Go to Solution.