iLogic to create Custom table from excel file containing different worksheets

iLogic to create Custom table from excel file containing different worksheets

dutt.thakar
Collaborator Collaborator
374 Views
1 Reply
Message 1 of 2

iLogic to create Custom table from excel file containing different worksheets

dutt.thakar
Collaborator
Collaborator

Hello,

 

I am trying to create a custom table in Inventor drawing using iLogic. I have got one code by which I am able to copy the first worksheet data from excel file. The code is shown below.

 

Dim oDrawDoc As DrawingDocument
  oDrawDoc = ThisApplication.ActiveDocument
    
    
     Dim oActiveSheet As Sheet
      oActiveSheet = oDrawDoc.ActiveSheet
    
    
      Dim oPoint As Point2d
      oPoint = ThisApplication.TransientGeometry.CreatePoint2d(25, 20)
    

     Dim oExcelTable As CustomTable
oExcelTable = oActiveSheet.CustomTables.AddExcelTable("Trial.xlsx",oPoint,"Trial")

 

Is there any way I can copy data from different worksheets and create tables using iLogic from  one excel file

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
0 Likes
375 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

@dutt.thakar,

 

Custom tables can also be created using cell values of excel sheet. For more details, refer below blog link to create custom table.

 

https://adndevblog.typepad.com/manufacturing/2014/03/save-revisiontable-content-to-customtable.html

 

Can you please provide sample excel (multiple worksheet) and expected custom table (snapshot)? please make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes