Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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.