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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Simple button in Creo Session

ddhini
15-Moonstone

Simple button in Creo Session

I create a simple button in a creo session using Jlink.

public static void start() throws Exception {

  displaymessage("Started");

  try {

  session = pfcGlobal.GetProESession();

  UICommand cmd = session.UICreateCommand("JLHW Btn1_cmd",new MenuButtonListener());

  session.UIAddButton(cmd,"File", null, "JLHW Btn1 Label", "JLHW Btn1 Help", "msg_jlinkhelloworld.txt");

  }

  catch (jxthrowable x) {

x.printStackTrace();

    }

  }

It working Sucessfully.

tool.JPG

But i want it in a single click.Now i click tools and file and D-tool.I don't wish to do this.I want it in a single button .Please help me to solve my problem.

1 REPLY 1
sjuraj
15-Moonstone
(To:ddhini)

you need to use cmd.Designate method and then manualy place your icon to ribbon in Creo. To designate command see j-link manual pdf

Announcements


Top Tags