Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Pro Engineer part via VB API

  • Thread starter Thread starter Lourens
  • Start date Start date
L

Lourens

Guest
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?
 

Part and Inventory Search

Sponsor

Back
Top