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
Solved! Go to Solution.
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
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
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.
Do we need a separate licence for Toolkit.
With Regards
Aghil M
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.
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
VB API should be enough for this. Please read the VB API documentation...
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)