Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic for Export the iproperties

1 REPLY 1
Reply
Message 1 of 2
linuskotte
808 Views, 1 Reply

iLogic for Export the iproperties

Hi,

 

I created one iLogic rule for exporting iproperties into excel sheet like below.

 

 

GoExcel.Open("D:\Properties\iPROPERTIES.xlsx")

GoExcel.CellValue("A3") = iProperties.Value("Summary", "Title")
GoExcel.CellValue("B3") = iProperties.Value("Summary", "Author")

MessageBox.Show("iProperties successfully copied!")

This is working for only one file but I want export all the inventor files properties into excel sheet in a current folder.

And next part properties sholud be in next row and third part properties shold be in third row Like.

 

Part2:

 

GoExcel.CellValue("A4") = iProperties.Value("Summary", "Title")
GoExcel.CellValue("B4") = iProperties.Value("Summary", "Author")

 

Part3:

GoExcel.CellValue("A5") = iProperties.Value("Summary", "Title")
GoExcel.CellValue("B5") = iProperties.Value("Summary", "Author")

 

Thanks in Advance 

 

Thanks and Regards,

LINUS KOTTE

1 REPLY 1
Message 2 of 2
naresh_kalyan
in reply to: linuskotte

Linus,

I have not that much exposure on iLogic. But, I would suggest you to do the same using VBA. It does much more options

 

Dim ofile As Scripting.file
Dim flsysobj As FileSystemObject

Dim sfolder As Scripting.Folder


Set flsysobj = New FileSystemObject
Set sfolder = flsysobj.GetFolder(opath) ' oPath Need to be defined by you

For Each ofile In sfolder.Files

   If Right(ofile.name, 4) = ".ipt" Or ".iam" Or ".idw" Then    ' need to be decided by you as per the files you are working with...
   Set odoc = ThisApplication.Documents.Open(ofile, True)
   
   ' wrtie the code which you have written in iLogic----------------------

 

     odoc.Update
    odoc.Save   
   odoc.Close   
   End If   
Next
Msgbox "Completed"


Have a good Day....

 

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

Post to forums  

Autodesk Design & Make Report