Big trouble with PutLogicalFileName

Big trouble with PutLogicalFileName

Anonymous
Not applicable
191 Views
0 Replies
Message 1 of 1

Big trouble with PutLogicalFileName

Anonymous
Not applicable
i have big problem with PutLogicalFileNameUsingFull(). i using c++ ,
aprentice server, and i have inv10 sp3.

File source in disk:
C:\Test\Test.iam
C:Test\komponent\Test1.ipt
C:Test\\komponent\Test2.ipt

i need change filelocation using aprentice sevrer from C:\Test\komponent\*
to c:\Test\OtherLocation\*

i test this
1. PutLogicalFileNameUsingFull("C:\Test\OtherLocation\Test1.ipt") function
return E_Fail - why ???
2. PutLogicalFileNameUsingFull("Test\OtherLocation\Test1.ipt") function
return moniker cannot open file
3. PutLogicalFileNameUsingFull("OtherLocation\Test1.ipt") function return
moniker cannot open file

My question is how path i must use in function ??Function return E_Fail or
Moniker cannot open file.

In inventor is curent project directory : C:\Test


Please help me.


here is code example:

open iam


Put function with test

for(int i = 1; i <= q1; i++)

{

ReferencedFileDescriptor* rf;

t1->get_Item(i, &rf);

ReferencedFileDescriptor* rf;
rf->GetLogicalFileName(&qw1, &qw2);
HRESULT hr = rf->PutLogicalFileNameUsingFull(TestFile);
rf->GetLogicalFileName(&qw1, &qw2);
}

save

close
0 Likes
192 Views
0 Replies
Replies (0)