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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

HOW TO LINK VB WITH CREO-2

avijayan-2
12-Amethyst

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.
1 ACCEPTED SOLUTION

Accepted Solutions

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

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

View solution in original post

9 REPLIES 9

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

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Thanks for the guideline parthiban,

Hai Parthiban,

I have completed all the steps to install the VB API to creo but still i am not able find any toolkit commands in my creo. Creo library has been added to the excel.

but i am facing problem in where to be started. Please guide me.

pro-02.JPG

pro-01.JPG

Do we need a separate licence for Toolkit.

pro-03.JPG

With Regards

Aghil M

TomasLoun
4-Participant
(To:avijayan-2)

No, you don't need license for VB API. Creo Toolkit is a different thing - it requires C++ programming and the license is required.

Creo Commands would not added to excel. You've to use import pfcls statement in coding file then you can access VB API library syntax.

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
TomasLoun
4-Participant
(To:avijayan-2)

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

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

TomasLoun
4-Participant
(To:avijayan-2)

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

TomasLoun
4-Participant
(To:TomasLoun)

You will find it in C:\Program Files\PTC\Creo 2.0\Common Files\MXXX\vbapi (or in your Creo installation folder if you have changed the default installation settings)

Top Tags