Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parte List Columns

1 REPLY 1
Reply
Message 1 of 2
petercharles
372 Views, 1 Reply

Parte List Columns

I've got a small macro to extract the data from 4 columns into an excel spreadsheet.

It works fine, but the columns required are hard coded into the macro.

 

I'd like to be able to scan across the columns for it's title and identify the required columns (item, part no, description, no off), particularly as I now find we use two parts list formats!!!

1 REPLY 1
Message 2 of 2
petercharles
in reply to: petercharles

Based on the old methods of trial and error ---

 

 

Dim oColumns As PartsListColumns
Set oColumns = oPartsList.PartsListColumns
Debug.Print oColumns.Count

Dim oColNo As Integer

For oColNo = 1 To oColumns.Count

Dim oColumn As PartsListColumn
Set oColumn = oPartsList.PartsListColumns.Item(oColNo)
Debug.Print oColumn.Title

Next

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report