cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Replace Skeleton in JLINK

Highlighted

Replace Skeleton in JLINK

Hello,

I would replace the skeleton of a model with an his copy:

An example code:

 

ComponentFeat part = (ComponentFeat) parts.get(0);

 

ModelDescriptor desc = part.GetModelDescr();

 

Solid component = (Solid) session .GetModelFromDescr(desc);

 

FeatureOperations replaceOps = FeatureOperations.create();

 

CompModelReplace replace = part.CreateReplaceOp(component.CopyAndRetrive("name",null);

 

replaceOps.insert(0, replace);

 

assembly.ExecuteFeatureOps(replaceOps, null);

 

This code doesn't  produce any error, but the skeleton remains the same. WHY??

Thanks.