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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

How to highlight a Component Using Jlink?

ddhini
15-Moonstone

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
Announcements
NEW Creo+ Topics: Real-time Collaboration

Top Tags