cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to highlight a Component Using Jlink?

ddhini
14-Alexandrite

How to highlight a Component Using Jlink?

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

0 REPLIES 0
Top Tags