- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
First of all I want to say any help is appreciated, I am new to the Autodesk ecosystem and trying to fix someone elses work which is never an easy task in itself.
The company I work for has previously developed a program that allows the designers to quickly search and select parts and then allows them to drop it straight into an assembly on Inventor. However the program has stopped allowing parts will multiple elements to it to be added. The program will only add the first element in the part to Inventor.
I believe the code below is responsible for pulling in the part.
PopUpDialogue.UpdateProgress(10, "Trying to retreive " + sFileName[0]);
VDF.Vault.Currency.Connections.Connection m_conn;
m_conn = new VDF.Vault.Currency.Connections.Connection(mVault, s, "", "Vault", VDF.Vault.Currency.Connections.Connection.AnonymousUserId, "se-vault01", VDF.Vault.Currency.Connections.AuthenticationFlags.Standard);
VDF.Vault.Currency.Entities.FileIteration fileIte;
/*Progress 60%*/
PopUpDialogue.UpdateProgress(10, "Downloading " + sFileName[0]);
fileIte = new VDF.Vault.Currency.Entities.FileIteration(m_conn, acwFile[0]);
VDF.Vault.Settings.AcquireFilesSettings mSettings = new VDF.Vault.Settings.AcquireFilesSettings(m_conn);
// try
// {
mSettings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeChildren = true;
mSettings.OptionsRelationshipGathering.FileRelationshipSettings.RecurseChildren = true;
mSettings.OptionsRelationshipGathering.FileRelationshipSettings.IncludeLibraryContents = true;
mSettings.OptionsRelationshipGathering.FileRelationshipSettings.VersionGatheringOption =
VDF.Vault.Currency.VersionGatheringOption.Latest;
/*Progress 70%*/
PopUpDialogue.UpdateProgress(10, "Aquiring " + sFileName[0]);
VDF.Vault.Results.AcquireFilesResults results = m_conn.FileManager.AcquireFiles(mSettings);
I have attached a screen recording.
Solved! Go to Solution.
Link copied