Skip to main content
1-Visitor
Dec 18, 2017 3:55 AM UTC
Solved

hello. creo 2.0 student edition can't click axuiliary application.

no response when i click home -> utilities -> axuiliary application . and button is grey. I'm sure I followed the documentation.

24-Ruby III
Dec 19, 2017 8:07 AM UTC

Hi,

 

my last reply follows ...

 

Your code works well on my PC.

 

I am able to reproduce com.ptc.pfc.Implementation.pfcExceptions$XToolkitGeneralError exception.

This exception appears when drawing file -OR- drawing model is not accessible.

 

Example:

I created model a4.prt and its drawing a4.drw and saved them into working directory.

I modified following line in your code:

String drw_name = "Asm0001.drw"; >>>>> String drw_name = "a4.drw";

When I started ProE and set working directory to see a4.prt and a4.drw, the application worked well.

When I renamed a4.prt to za4.prt -OR- a4.drw to za4.drw, then I got exception.

 

Please check if ProE can see Asm0001.drw and drawing model.

25 replies

1-Visitor
Dec 18, 2017 3:57 AM UTC

i'm follow jlinkug.pdf to set env. i really can't get more info.

Translate
1-Visitor
Dec 18, 2017 10:09 AM UTC

i got diff trail info when i use diff method.

 

1.  

RetrieveModelWithOpts

 

 

!trail file version No. 1450
!Pro/ENGINEER TM 5.0 (c) 1988-2002 by Wisdom Systems All Rights Reserved.
< 0 1.615407 1689 0 0 1363 1920 0 0 1440 13
!mem_use INCREASE Blocks 211690, AppSize 33503698, SysSize 41067456
< 0 1.454000 1454 0 0 1227 1920 0 0 1440 13
< 0 1.309000 1309 0 0 1227 1920 0 0 1440 13
< 0 1.309000 1309 0 0 1226 1920 0 0 1440 13
!%CI欢迎使用 Creo Elements/Pro 5.0。
!Application (exportTest): started via registry.
! type: synchronous J-Link
< 0 1.311000 1311 0 0 1226 1920 0 0 1440 13
< 0 1.324000 1324 0 0 1226 1920 0 0 1440 13
~ Close `main_dlg_cur` `main_dlg_cur`
!Command ProCmdOSExit was pushed from the software.
! Message Dialog: Warning
! : Creo Elements/Pro 将终止,并且所有未保存的工作将会丢失。
! : 您确实要退出吗?
~ FocusIn `UI Message Dialog` `no`
~ FocusIn `UI Message Dialog` `yes`
~ Activate `UI Message Dialog` `yes`
!End of Trail File

 

2. 

RetrieveModel

 

 

trail file version No. 1450
!Pro/ENGINEER TM 5.0 (c) 1988-2002 by Wisdom Systems All Rights Reserved.
< 0 1.615407 1689 0 0 1363 1920 0 0 1440 13
!mem_use INCREASE Blocks 211689, AppSize 33503682, SysSize 41067456
< 0 1.454000 1454 0 0 1227 1920 0 0 1440 13
< 0 1.309000 1309 0 0 1227 1920 0 0 1440 13
< 0 1.309000 1309 0 0 1226 1920 0 0 1440 13
!%CI欢迎使用 Creo Elements/Pro 5.0。
!18-Dec-17 18:01:21 Start C:\USERS\HU\DESKTOP\asm0001.drw
!%CE'C:\USERS\HU\DESKTOP\asm0001.drw'不能检索。
!18-Dec-17 18:01:21 End C:\USERS\HU\DESKTOP\asm0001.drw
!Application (exportTest): started via registry.
! type: synchronous J-Link
< 0 1.311000 1311 0 0 1226 1920 0 0 1440 13
< 0 1.324000 1324 0 0 1226 1920 0 0 1440 13
~ Activate `main_dlg_cur` `main_dlg_cur`
~ Close `main_dlg_cur` `main_dlg_cur`
!Command ProCmdOSExit was pushed from the software.
! Message Dialog: Warning
! : Creo Elements/Pro 将终止,并且所有未保存的工作将会丢失。
! : 您确实要退出吗?
~ FocusIn `UI Message Dialog` `no`
~ FocusIn `UI Message Dialog` `yes`
~ Activate `UI Message Dialog` `yes`
!End of Trail File

 

Translate
1-Visitor
Dec 18, 2017 2:49 PM UTC

anyone is there?

Translate
1-Visitor
Dec 18, 2017 2:51 PM UTC

I almost finished the google answer and the BBS information, but it didn't work

Translate
24-Ruby III
Dec 18, 2017 3:07 PM UTC

Hi,

 

my suggestion ... go to CREO_LOADPOINT\...\jlink\jlink_appls\jlinkexamples directory and study the contents of .java files located in it.

Translate
1-Visitor
Dec 18, 2017 3:16 PM UTC

Do you mean the env is correct.

Translate
1-Visitor
Dec 18, 2017 4:17 PM UTC

i'm still don't know why RetrieveModel return XToolkitGeneralError. pfcGlobal.getproesession fine.  

pfcModel.ModelDescriptor_Create fine. cursession[by pfcGlobal.getprosession].RetrieveModel will fail.

Translate
24-Ruby III
Dec 18, 2017 6:53 PM UTC

Hi,

 

I was able to open drawing using following sequence:

 

    String stdpath = "D:\\users\\mh\\creo2_parametric\\PTC_JLink\\open_drawing";
    String modelname = "a4";
    // D:\\users\\mh\\creo2_parametric\\PTC_JLink\\open_drawing directory contains ... a4.drw, a4.prt files
    ModelType type = ModelType.MDL_DRAWING;
    ModelDescriptor descr;
    Model model;
    Session proeSession;

    try
    {
      proeSession = pfcGlobal.GetProESession();
      descr = pfcModel.ModelDescriptor_Create(type, modelname, null);
      descr.SetPath(stdpath);
      model = proeSession.RetrieveModel(descr);
      model.Display();
    }
    catch(Throwable e)
    {
        System.out.println ("Exception " + e);
    }

 

Translate
24-Ruby III
Dec 18, 2017 6:58 PM UTC
  • compiled using j2sdk1.4.1_07
  • launched using Java(TM) SE Runtime Environment (build 1.6.0_13-b03) installed in Creo Parametric 2.0 M190
Translate