Search folders by Description

Search folders by Description

Anonymous
Not applicable
340 Views
2 Replies
Message 1 of 3

Search folders by Description

Anonymous
Not applicable

All,

 

I'm looking to piece together some code to search a given folder (and sub folders) for a description of an inventor ipt / iam.

 

Is this possible?

 

I'll then look to  return the values to the used in a message box; detailing filename & description and path to file?

 

 

any help/info is most appreciative

 

thanks!!

 

 

0 Likes
341 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

You need to use Windows API to iterate the contents of folders. e.g. in .NET it would be 

https://msdn.microsoft.com/en-us/library/07wt70x2(v=vs.110).aspx

 

Once you have the full path of the files then you can of course open them using the Inventor API to get information out of them.

 

If you want to do all this outside Inventor, then you could also use the Apprentice API: 
http://modthemachine.typepad.com/my_weblog/2010/03/iproperties-without-inventor-apprentice.html

 

Cheers,

 



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 3

Wind_Talker
Contributor
Contributor
Hi,

I had the exact same issue couple of weeks back. See my code at the following post.

Hope it helps.

http://forums.autodesk.com/t5/inventor-customization/comp-replace-by-next-or-previous-file-in-a-netw...
0 Likes