Substitute part in simplified representation
Hey everybody,
I have the following problem:
I want to substitute a part in a simplified representation with another member of the familiy table. However, due to a lack of programming skills, I am unable to do this.
Currently I have to following code to exclude a feature, given its ID:
var simp_rep = solid.GetActiveSimpRep();
var simp_rep_instructions = simp_rep.GetInstructions();
var item_path = pfcCreate ("intseq");
item_path.Append(FEAT_ID); //currently I set the feature Id manually
simp_rep_comp_item_path = pfcCreate("pfcSimpRepCompItemPath").Create(item_path);
simp_rep_item = pfcCreate("pfcSimpRepItem").Create(simp_rep_comp_item_path);
simp_rep_action = pfcCreate("pfcSimpRepExclude").Create();
simp_rep_item.Action = simp_rep_action;
simp_rep_instructions.Items.Append(simp_rep_item);
simp_rep.SetInstructions(simp_rep_instructions);
Can somebody help me to modifiy this code to substitute a part (e.g. prt0001.prt) with a family table member (e.g. simplified<prt0001.prt>)?
Any help is greatly appreciated and happy holidays 🙂

