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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Jlink Drawing Format

Benny_B
6-Contributor

Jlink Drawing Format

Hello,

I am working with Creo Jlink and I have a problem with J-Link and drawings.

I like to show/hide the drawing format with J-Link.

Normally you can do it by clicking Sheet Setup and mark/unmark the "Show Format" box

I tried to show/hide the drawing format with Jlink by calling the RunMacro function with a working MapKey code in it.

Reading the User Manual and searching on the web I could not find any solutions.

Does someone has some experience with it?

1 REPLY 1
smartel
6-Contributor
(To:Benny_B)

Hi I just saw your request.

I did it before using the following reference:

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS129591

here is the example in the case:

inSession.RunMacro("~ Command `ProCmdWinActivate`");
//try activate the UI at least 2 times or more
inSession.RunMacro("~ Command `ProCmdUtilTrailTrain`");
inSession.RunMacro("~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` `file_open");
inSession.RunMacro("~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER`  `file_open:Ph_list.Filelist:<NULL>`");            
inSession.RunMacro("~ Update `file_open` `Inputname` `" + trail_file_with_path +"`" );
inSession.RunMacro("~ Activate `file_open` `Inputname`" );

I have an example of my own but done in vb.net really similar

Steve

Top Tags