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: 

get linked excel file

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
244 Views, 2 Replies

get linked excel file

hi!

do anybody know how i get the location of an linked excel
file via API?

please help
best regards peter
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

This will work for both IPT and IAM. The ErrorResumeNext is used to trap the error if there's no linked excel sheet. Cheers, Teun Sub GetLinkedExcelFileLocation() Dim oDoc As Document Dim oParameters As Parameters Dim oTable As ParameterTable On Error Resume Next Set oDoc = ThisApplication.ActiveDocument Set oParameters = oDoc.ComponentDefinition.Parameters Set oTable = oParameters.ParameterTables.Item(1) If Err Then MsgBox "No linked Excel Sheet" Err.Clear Else MsgBox oTable.FileName End If On Error GoTo 0 Set oDoc = Nothing Set oParameters = Nothing Set oTable = Nothing End Sub
Message 3 of 3
Anonymous
in reply to: Anonymous

many thanks to teun

wonderfull help

best regards peter

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

Post to forums  

Autodesk Design & Make Report