I am looking for a multi part path template file and hopefully an example of using one, a substrate + metal 1 contact for example.
How about creating it interactively from the Create->Multipart path form, and then saving a template? It's not difficult...
So I would need to draw a section of it with "flat" data and then use the command?
No, you'd use Create->Multipart Path, hit F3 to bring up the options form, and then fill in the main form, and Subpart forms - try drawing with it to make sure it's OK, and give it Template Name and hit the "Save Template" button on the form.
Thank you Andrew that works.I have created a substrate guard ring multi part path, when I use it the contacts don’t adjust to the width but appear in a single row no matter how wide the ring is?
that is correct, when you define the subrect array it is a single width "row" that adjusts in length but not in width. You would need to add further rows as needed to fit the width of the master. What you could do is to code this in a procedure rather than a template, and then the contacts could be programmed to adjust with the path width. I don't have an example of this just now, but I do have an example of how to convert the MPP template into a procedure that works in the way I just described. Please take a look at Solution 11252132
Download the code from the solution, CCSslotMetal.il, the code is for creating slotted metal paths, but you will see that it has its own Options form which has the path width on it so it is available for other procedures to use the value. The function that does the work is CCSslotMetalCB and you may notice that it looks just like the Multi-Part Path template, with a few changes so that hard-coded numbers have been replaced with parameters. The subRect argument is a list of lists - this could be generated by a looping construct e.g. foreach mapcar or a for loop. This previous post may help, or this one is a better example.
Hope this helps!