Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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.