Create draft for .psm using other template

Valued Contributor
Valued Contributor

Hi, I succeded in generating draft document for my .psm file using the common draft creating procedure

...

oDocD = oDocs.Add("SolidEdge.DraftDocument")

...

But It always generates the draft with the standard ISO metric Draft.dft fro the standard templates. Even if I "specifie another template to be used when a file is automatically created"using the set default template in the solidedge option "helpers". It changes abosolutly nothing and creates again the draft using the ISO metric Draft.Dft.

 

Please help, Thanks

ST9
Conveyor and industrial equipment designer.
Giving SE a chance.
3 REPLIES

Re: Create draft for .psm using other template

Phenom
Phenom

Hi, Have you checked the second argument for Template Doc.

It's an object but I think you can specify a string with full or relative path to the template doc.

 

templdoc.png

 

~Tushar

 

Re: Create draft for .psm using other template

Genius
Genius

Thanks Tushar!



==========================
Kabir Costa
Industrial Designer
kabircosta@gmail.com

Re: Create draft for .psm using other template

Genius
Genius

Tushar, But how to do this with Quicksheet? To insert the part in views?



==========================
Kabir Costa
Industrial Designer
kabircosta@gmail.com