Skip to main content
1-Visitor
Dec 15, 2016 11:53 AM UTC
Solved

HOW TO LINK VB WITH CREO-2

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.
16-Pearl
Dec 16, 2016 5:40 AM UTC

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

9 replies

16-Pearl
Dec 16, 2016 5:40 AM UTC

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

Translate
1-Visitor
Dec 16, 2016 6:28 AM UTC

Thanks for the guideline parthiban,

Translate
1-Visitor
Dec 16, 2016 7:57 AM UTC

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

Translate
1-Visitor
Dec 16, 2016 9:57 AM UTC

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

Translate
1-Visitor
Dec 16, 2016 1:55 PM UTC

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

Translate