Reply

Save an assembly in revision manager

[ Edited ]

Hello Everyone,

 

I have an assembly_1 with two parts, with name part_1, and part_2. And there is a relation between this two parts. I want to saveas the assembly etc: assembly_2 and the two parts with name part_3 and part_4.

I can save them, and can change the links in the assembly from part_1 and part_2 to part_3 and part_4 but it losts the relation between the two parts.

I use the revisionmanager.insight and revdocument.saveallink() commands, but it doesn't work.

 

Here is the code I use

 

try

{

revapplication = new RevisionManager.Application();

insight = revapplication.Insight;

 

insight.CopyFiles(osszeallitasinev, part1_nev, part1_nevuj);

insight.CopyFiles(osszeallitasinev, part2_nev, part2_nevuj);

 

revdocument = (RevisionManager.Document)revapplication.Open(osszeallitasinev);

linkeddocuments = revdocument.LinkedDocuments;

 

linkeddocument = linkeddocuments.get_Item(1);

linkeddocument.SetPath(part1_nevuj);

 

revdocument.SaveAllLinks();

 

linkeddocument = linkeddocuments.get_Item(2);

linkeddocument.SetPath(part2_nevuj);

 

revdocument.SaveAllLinks();

insight.CopyFiles(osszeallitasinev, osszeallitasinev, osszeallitasinevuj);

revapplication.Quit();

}

 

catch

{

}

 

Please help with some info.

 

Posted by: Ungi Laszlo
Post date: 2/15/2012 3:30:31 PM

1 REPLY

Re: Save an assembly in revision manager

[ Edited ]

Maybe it is not too clear, that what I want to do.

 

I want to use the revision manager set action to copy, and perform actions programs in my program.

 

Thanks.

 

Posted by: Ungi Laszlo
Post date: 2/16/2012 2:29:20 AM