Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetAFAttributeTemplate Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetAFAttributeTemplate Class

Get an AF Attribute Template

The Get-AFAttributeTemplate cmdlet gets an existing AF Attribute Template. The AF Attribute Template can be on an existing Element Template, or a Sub Attribute Template.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetAFAttributeTemplate

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Get", "AFAttributeTemplate", DefaultParameterSetName = "ElementName", 
	SupportsShouldProcess = true)]
public class GetAFAttributeTemplate : OSICmdletBase
<CmdletAttribute("Get", "AFAttributeTemplate", DefaultParameterSetName := "ElementName", 
	SupportsShouldProcess := true)>
Public Class GetAFAttributeTemplate
	Inherits OSICmdletBase

Dim instance As GetAFAttributeTemplate
[CmdletAttribute(L"Get", L"AFAttributeTemplate", DefaultParameterSetName = L"ElementName", 
	SupportsShouldProcess = true)]
public ref class GetAFAttributeTemplate : public OSICmdletBase
[<CmdletAttribute("Get", "AFAttributeTemplate", DefaultParameterSetName = "ElementName", 
	SupportsShouldProcess = true)>]
type GetAFAttributeTemplate =  
    class
        inherit OSICmdletBase
    end

The GetAFAttributeTemplate type exposes the following members.

Constructors

  NameDescription
Public method
GetAFAttributeTemplate

Properties

  NameDescription
Public property
AFAttributeTemplate

Parent AF Attribute Template from which to get AF Sub Attribute Template

Public property
AFElementTemplate

AF Element Template from which to get AF Attribute Template

Public property
ID

ID of the AF Attribute Template to get

Public property
Index

Index of the AF Attribute Template to get

Public property
Name

Name of the AF Attribute Template to get

Public property
Refresh

Refresh container before accessing

Examples

Get-AFAttributeTemplate -Name "Temperature" -AFElementTemplate $afEleTemplate

Where:

$afEleTemplate = Get-AFElementTemplate -Name "Oven" -AFDatabase (Get-AFDatabase -Name "AFDatabase1" -AFServer (Get-AFServer -Name "PIAF1"))

Gets the AF Attribute Template "Temperature" on the element template "Oven" on the database "AFDatabase1" on the AF Server "PIAF1".

Examples

Get-AFAttributeTemplate -Name "Fahrenheit" -AFAttributeTemplate $afAttTemplate

Where:

$afEleTemplate = Get-AFElementTemplate -Name "Anneal Oven 1" -AFDatabase (Get-AFDatabase -Name "AFDatabase1" -AFServer (Get-AFServer -Name "PIAF1"))

$afAttTemplate = Get-AFAttributeTemplate -Name "Inner Temperature" -AFElementTemplate $afElement

Gets the child AF Attribute Template "Fahrenheit" of the AF Attribute Template "Inner Temperature" on the element template "Oven" on the database "AFDatabase1" on the AF Server "PIAF1".

See Also

TitleResults for “How to create a CRG?”Also Available in