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: 

link excel file to inventor with vb.net

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Burnit87
992 Views, 1 Reply

link excel file to inventor with vb.net

hey, i'm doin my graduation thesis about programming inventor, and i'm stuck

i need to automaticly import an excel sheet to my parameters with vb.net

please help me

 

thanks in advance

Björn

BP
Tags (3)
1 REPLY 1
Message 2 of 2
Burnit87
in reply to: Burnit87

i've found a solution on

http://adndevblog.typepad.com/manufacturing/2012/08/accessing-inventor-parameters.html

 

i simplified it to

PrivateSub CreateLink()

'set excel file location as string

Dim strExcelLocation AsString = fbDlg.SelectedPath & "\" & txtPartName.Text & ".xlsx"

'acces active documents parameters

Dim allparams AsParameters = _invApp.ActiveDocument.componentdefinition.parameters

'link excel file with part parameters

allparams.ParameterTables.AddExcelTable(strExcelLocation, "A1", True)

'save part

_invApp.ActiveDocument.Save()

EndSub

BP

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

Post to forums  

Autodesk Design & Make Report