Skip to main content
1-Visitor
May 22, 2021
Question

VBA

  • May 22, 2021
  • 1 reply
  • 1832 views

Hi,

I have certain questions pl. help me in getting solutions;

1) How to check that the installed creo (i have ptc 5.0) is installed with VB API or it supports VBA?

2) Through VBA i have to open the creo and set the working directory without going opening the creo manually is it possible through vba?

3) There is an assembly of 5 different components & each each component has different parameters (like family table but however i will not be making the family table) then is it possible to write program in excel vba to automatically replace parts with the existing part in the assembly?

 

Regards,

Shubham Mehta

1 reply

HamsterNL
18-Opal
May 29, 2021

If you have installed the VB API, then you should have a folder like this:

 

<installation folder of creo>\Creo 5.0\<datecode>\Common Files\vbapi

 

In that folder, you should have a PDF-file called "vbug.pdf", the "VB API User's Guide", which has more than 230 pages of all the functions of the VB API with a lot of examples.

 

That document should get you started!

1-Visitor
May 31, 2021

Thank you HamsterNL for the guidance....i found it that document in local folder.

 

Can you do one favour could you share one simple part driving through vba as an example.

 

 

Regards,

Shubham