Skip to main content
1-Visitor
July 22, 2016
Question

Create part with default template

  • July 22, 2016
  • 1 reply
  • 1410 views

Hello,

How can I create a part with default template using protoolkit?

I am using below API, but could not identify what to do next?

ProsolidCreate

ProSolidDisplay

Any suggestion will be of great help.

Thanks and Regards

Ketan

1 reply

4-Participant
May 6, 2018

follow below steps for creating Part/Assembly/Drawing with default template or start part.

 

1) ProMdlRetrieve //Template or start part

2) ProMdlCopy //copy template

3) ProMdlNameGet //new model name from copied template name (name from point 2)

4)ProMdlRetrieve //Retrieve the new model

5)ProWindowCurrentGet //get current window

6)ProObjectwindowCreate //get retrieved model in current window

7)ProWindowActivate //activate window

8)ProMdlDisplay //new model display
9)ProWindowActivate //activate window.