Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I need to highlight the Component by giving its ID.
//GET SESSION
Session session=pfcGlobal.GetProESession();
//GET ASSEMBLY
Assembly asm = (Assembly) session.GetActiveModel();
intseq seq1=intseq.create(); eq1.set(0, id); ComponentPath compath = pfcAssembly.CreateComponentPath(asm, seq1); //SELECTION Selection sel = pfcSelect.CreateComponentSelection(compath); //SET HIGHLIGHT COLOR sel.Highlight(StdColor.COLOR_PREVIEW); //DISPLAY MODEL TO REFRESH SCREEN mod.Display();
This is working fine.But its failed to highlight the Second third level components.It only highlights the First level Components when i include the ID.please help me to solve this
s