Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Create Pro Engineer part via VB API

Lourens

New member
Hi I need some help with writing script in VB for creating a new Creo(ProE) part.


I already created an interface in Visual studio where I can select to create a Solid part and generate a part number and Part Name. I need to code the "Create Part" button. This button needs write the PArt Number and PArt name from the Text Boxes to the Creo Name and Common Name text fields and then generate the part. After being able to do this I would focus on creating other types of creo objects like Drawing, Assemblies etc.


I would appreciate the help


Thanks
 
Dim mdl As CpfcModel


'The next Command creates a new part in an empty format:


mdl = session.CreateAssembly("TheNewPartName")


What do I need to set so that I would be able to create part with Part Template settings? for instance Parameters and Datum Planes allready set to template part setting?
 

Sponsor

Articles From 3DCAD World

Back
Top