Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UpdateItemsFromFiles

1 REPLY 1
SOLVED
Reply
Message 1 of 2
ewcv
332 Views, 1 Reply

UpdateItemsFromFiles

Hi,

it seems, that m_ServiceManager.ItemService.UpdateItemsFromFiles(new long[] { editItem.RevId } );

doesn't work with a .dwf file.

the result is an exception (error code 0)

the log file is attached.

there is no exception with an underlying .ipt-file for example.

Erika

1 REPLY 1
Message 2 of 2
Daniel.Dulzo
in reply to: ewcv

Hello Erika,

 

As a potential workaround to this issue, I would suggest using the ItemService.PromptComponents() method instead. The code below should have the same effect as a call to ItemService.UpdateItemFromFiles():

 

wsManager.ItemService.AddPromoteComponents(new long[] { dwfFile.Id });

DateTime time;

long[] promoteComponents = wsManager.ItemService.GetPromoteComponentOrder(out time);

wsManager.ItemService.PromoteComponents(time, promoteComponents);

ItemsAndFiles dwfItemsAndFiles = wsManager.ItemService.GetPromoteComponentsResults(time);



Daniel Dulzo
Software Engineer
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report