search for I-features in vault using i-logic ?

search for I-features in vault using i-logic ?

michel_07
Participant Participant
404 Views
4 Replies
Message 1 of 5

search for I-features in vault using i-logic ?

michel_07
Participant
Participant

hello all,

 

I have the following problem.
Here is an example. I have about 1000 models in Vault. In some of them is I-Feature XY installed, but I don't know in which. I-Feature XY must be placed however again since here the geometry changed. To search through 1000 models in which the I-Feature XY is installed would be a huge expenditure of time. For this there must be a simpler solution to find these in Vault ?!?!

 

In the forums "Vault" and "Inventor German" nobody could help me so far.

 

Is there a solution for this with I-Logic.

 

Thank you very much

0 Likes
405 Views
4 Replies
Replies (4)
Message 2 of 5

Michael.Navara
Advisor
Advisor

In my  opinion this is not possible because Vault is "only" database of information about files. By default only iProperties and file references are stored (indexed) in this database. In your case iFeature is not referenced but included to the part file.

Only one solution may be check all part files in Vault if this file contains "reference" to the iFeature XY. You can store this information in iProperty for future use, but at the beginning you have only this possibility.

Message 3 of 5

theo.bot
Collaborator
Collaborator

Ilogic, basicly the API can provide the information of ifeature. There is a property "LastKnownSourceFileName" that will give you the fullfilename of the Ifeature that is used (*.Ide file). You can use this to compare to your ifeature that needs an update.

oiFeature.iFeatureTemplateDescriptor.LastKnownSourceFileName

But to search for that info in vault is difficult, because you need to seach insde the file. Vault is good in seaching based on the properties that are mapped in your configuration, not the details of your models. I would avoid programming in vault, but simply use the taskschedular to get files localy. Depending on what your action next will be you might need to check out the files. If you only open them to create a report then no check out is needed. Use the API or Ilogic to create a routine and go thru all the parts in a folder and get all the ifeature info out of it. 

 

Message 4 of 5

michel_07
Participant
Participant

@Michael.Navara 

Could you please explain to me how to do this with the links ?

I don't really understand it.

How do I check in Vault if there is a reference between a model and I-Feature XY ?

 

And how do I store this information in the I-Properties ?

 

Thanks a lot

0 Likes
Message 5 of 5

Michael.Navara
Advisor
Advisor

As @theo.bot mentions, you need to download the files from Vault and read the iFeature template from it. Then you create new user defined iProperty and set it to this value. Then you checkin the file to the Vault. Later you can search files by this iProperty in the Vault.

This task can be done by TaskSheduler or JobProcessor (if you can implement your custom job) or with custom iterator on files on local disk.

 

But this task is very complex and I can't to prepare simple sample for you.

0 Likes