Skip to main content
1-Visitor
August 3, 2017
Question

drawing using .frm

  • August 3, 2017
  • 1 reply
  • 3797 views

Hello I need to create new drawing using .frm file using toolkit. I tried API ProDrawingFromTmpltCreate(), but same is not working. This API is working for drawing creation using .drw file. Any thoughts will be of great help. Thanks in advance. Regards Ketan

1 reply

15-Moonstone
August 3, 2017

Your first need to create a drawing by a template and then change the frame .frm. You can do this by ProDrawingFormatAdd(). The easiest way is to use an empty drw, so you don't need to think about pending tables.

 

Br,

Eike

1-Visitor
August 3, 2017
Hi Appreciate your help. I will be able to add template using suggested API. How can I create a drawing by a template? Any specific API is there? I am not able to use ProDrawingFromTmpltCreate for same purpose.
15-Moonstone
August 3, 2017

You need to create it by this way. So I use it in my code and it works. Only other way is to do it by a sync. mapkey. But I wouldn't do it if you don't need it. Whats the feedback of your code? Can you post a sniplet?

 

There is a PTC example for this (put it in as file).

 

You need to change the mdl template name to an empty template of your choice.

 

Br,

Eike