I want to delete a external class which is stored in a model using jlink.
showing excception like this :
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
com.ptc.pfc.Implementation.pfcExceptions$XBadExternalData
at com.ptc.pfc.Implementation.pfcExternal$ExternalDataClass.Del ete(Native Method)</BLOCKQUOTE>
Thisis the code....
ExternaldataAccess =model.AccessExternalData();
ExternaldataAccess.LoadAll();
ExternalDataClasses ExternaldataClasses =ExternaldataAccess.ListClasses();
for ( int i = 0; i < ExternaldataClasses.getarraysize();i++)
{
ExternalDataClass ExternaldataClass =ExternaldataClasses.get(i);
if((ExternaldataClass.GetName().equalsIgnoreCase(selected_se t))) {
if(ExternaldataClass.IsValid(){
ExternaldataClass.Delete();
}
}
}
can anybody help me to solve this ?
showing excception like this :
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
com.ptc.pfc.Implementation.pfcExceptions$XBadExternalData
at com.ptc.pfc.Implementation.pfcExternal$ExternalDataClass.Del ete(Native Method)</BLOCKQUOTE>
Thisis the code....
ExternaldataAccess =model.AccessExternalData();
ExternaldataAccess.LoadAll();
ExternalDataClasses ExternaldataClasses =ExternaldataAccess.ListClasses();
for ( int i = 0; i < ExternaldataClasses.getarraysize();i++)
{
ExternalDataClass ExternaldataClass =ExternaldataClasses.get(i);
if((ExternaldataClass.GetName().equalsIgnoreCase(selected_se t))) {
if(ExternaldataClass.IsValid(){
ExternaldataClass.Delete();
}
}
}
can anybody help me to solve this ?