Hi Jen,
You can create models within PI SystemExplorer:
-Create an AFDatabase.
-Within "Elements" right click on the root element and select "New Model".
You can also do this via AFSDK:
*Assumes you have an object AFDB defined as AFDatabase.Code:
' Create an Element Template for the model.
Dim ModelTemplate As AFElementTemplate = AFDB.ElementTemplates.Add("JenModelTemplate")
ModelTemplate.InstanceType = GetType(AFModel)
' Create the model object, assign it the Element Template created above.
Dim TheModel As AFModel = CType(AFDB.Elements.Add("JenModel", ModelTemplate), AFModel)
TheModel.Description = "This is a model for Jen."
AFDB.ApplyChanges()
OSIsoft PI System SpecialistsPI consultancy on PI Systems, PISDK, AFSDK, OLEDB etc and PI custom developments. Well pretty much anything to do with PI!