Skip to main content
1-Visitor
November 7, 2017
Question

How to highlight a Component Using Jlink?

  • November 7, 2017
  • 0 replies
  • 916 views

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