This content has been marked as final.
Show 3 replies
-
Re: Programmatically copy AF Template from one server to another
rgilbertDec 18, 2014 4:14 AM (in response to mhalhead)
Try using ExportXML and ImportXML on the PISystem object. This is how the PI Builder (Excel Add-in) works. You could either pass in the single template, or you can build up an AF collection of them such as AFCollectionList<AFElementTemplate> and pass them all in at once. When you call ImportXML you'll pass in the AFDatabase of new destination system.
-
Re: Programmatically copy AF Template from one server to another
mhalheadDec 19, 2014 3:32 AM (in response to rgilbert)
Thanks Ryan,
I foolishly hadn't thought of that.
-
Re: Programmatically copy AF Template from one server to another
rgilbertDec 19, 2014 11:57 PM (in response to mhalhead)
I've been using it for years, and I still sometimes forget Import/Export is an option. I've had to condition myself to remember it.
-
-