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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Creo customization including VBAPI,Weblink,Jlink

MurphyMin
11-Garnet

Creo customization including VBAPI,Weblink,Jlink

One to four little updates for these topics

 

Contact with me if you're interested in these and send me your mail address

 

contact mail:15913754304@163.com

5 REPLIES 5

 weblink configuration.JPG

 

 

  1. Get creo Session in weblink  MpfcCOMGlobal.GetProESession()

ActiveXObject method to create class in weblink

function pfcCreate (className)
{
  if (pfcIsWindows())
    return new ActiveXObject ("pfc."+className);
  else if (pfcIsChrome())
    return pfcCefCreate (className);
  else if (pfcIsMozilla())
  { 
    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    ret = Components.classes ["@ptc.com/pfc/" + className + ";1"].createInstance();
    return ret;
  }

2.Get current working directory and change it

getCurrentDir.JPGchangeWorkingDir.JPG

 

Get model info in session

 

modelInfo.JPG

ListModelItem

 

ModelItem img1.JPGModelItem img2.JPG

It's not convinent to post all the programs in community, so i will just post the result of the programs

however, you can contact with me via Skype while you wanna to know more details, including Weblink,Jlink,ToolkitJava,VBAPI

skype.JPG

Top Tags