Skip to main content
2-Explorer
Jul 22, 2016 6:16 AM UTC
Question

Create part with default template

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 10:34 AM UTC

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.

Translate