Skip to main content
1-Visitor
December 15, 2016
Solved

HOW TO LINK VB WITH CREO-2

  • December 15, 2016
  • 2 replies
  • 7862 views

Hai All,

  I have a requirement of creating an CREO assembly file using VB.Can anyone suggest how to link creo and VB program and how to write a VB code.

With Regards

Aghil M


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by PARTHIBAN_K

Hello Aghil,

  It may quite complicated if you try to VB Automation on Creo without VB Coding knowledge. But it is possible by your hardwork & time if you're ready to spend.

1. Go through this link to learn basics of VB Visual Basic Tutorial - visual basic learning center

2. To implement VB functionality in Creo you must installed VB API with Creo, see the below link for more information

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS141739&lang=en&source=snippet

3. Look for VB API folder in your Creo installed location, [Path may be look like this C:\PTC\Creo2-amd64-M120\Creo 2.0\Common Files\M120\vbapi]

That folder contains Documentaions & lot of example of VB Coding for CREO.

All the best

2 replies

16-Pearl
December 16, 2016

Hello Aghil,

  It may quite complicated if you try to VB Automation on Creo without VB Coding knowledge. But it is possible by your hardwork & time if you're ready to spend.

1. Go through this link to learn basics of VB Visual Basic Tutorial - visual basic learning center

2. To implement VB functionality in Creo you must installed VB API with Creo, see the below link for more information

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS141739&lang=en&source=snippet

3. Look for VB API folder in your Creo installed location, [Path may be look like this C:\PTC\Creo2-amd64-M120\Creo 2.0\Common Files\M120\vbapi]

That folder contains Documentaions & lot of example of VB Coding for CREO.

All the best

1-Visitor
December 16, 2016

Thanks for the guideline parthiban,

1-Visitor
December 16, 2016

Hi Aghil,

you have the possibility to use Creo's VB API which is for free or I can recommend you Automation Gateway which has to be paid, but is easier for the development.

Regards,

Tom

1-Visitor
December 16, 2016

Hai Tomas.

Thanks for your reply, My requirement is kind of  i want to create an assembly file, for that the input is an excel sheet and a notepad file. we don't have to work on the part level. so from excel if i choose a particular set of input i should get the assembly file ready in creo. with some co-ordinate system and planes.

so what i want to know is is this possible with VB API or should i get a licence for Creo Toolkit.

As i am a beginner to this level. Please guide me how to link this excel and my creo.

Thanking You

Aghil M

1-Visitor
December 16, 2016

VB API should be enough for this. Please read the VB API documentation...