Home Forums General XMetaL Discussion InsertWithTemplate example Reply To: InsertWithTemplate example

MrPaul

Reply to: InsertWithTemplate example

Thanks Derek. I already had a ctm file from the application we're migrating. It's just that there weren't any “Templates” in it so I'm still not sure why InsertWithTemplate was working in v3, but doesn't in xmax v7 unless I add the missing configuration in the ctm file. It works when I do that.

For anyone else trying to accomplish the same thing, you can specify what to automatically insert when calling InsertWithTemplate when adding the following to the ctm file. For example:

[code]
 
 
   
 
[/code]

Then when calling:

[code]Selection.InsertWithTemplate(“Line”)[/code]

It will insert this automatically:

[code][/code]

It works!

Reply

Products
Downloads
Support