ICENodePort.CustomDataTypes

導入

v8.0 (2010)

詳細

この ICENodePort に定義されているカスタムデータ型のArrayを戻します。カスタムデータ型は、カスタム ICENodes によって定義され、カスタム ICEPorts および ICEAttributes を定義するためのデータ型として使用されます。カスタムタイプがこのポートで定義されていない場合は、配列は空になります。

C#構文

// get accessor

Object rtn = ICENodePort.CustomDataTypes;

Python の例

from win32com.client import constants

app = Application

log = app.LogMessage

# Loads the GridWalker custom node plug-in from the examples workgroup

wrkgrp = XSIUtils.BuildPath( app.GetInstallationPath2(constants.siFactoryPath ), "XSISDK", "examples", "workgroup" )

app.AddWorkgroup( wrkgrp )

# Opens the GridWalker scene containing custom data types 

app.OpenScene( XSIUtils.BuildPath( wrkgrp, "Addons", "CustomICENodes", "Data", "Project", "Scenes", "GridWalker" ) + ".scn", False )

# Log the ports with custom data types

node = app.ActiveSceneRoot.FindChild("grid").ActivePrimitive.ICETrees(0).Nodes("GridWalker")

for p in node.InputPorts:

	if p.DataType == constants.siICENodeDataCustomType:

		log( "Custom data type for input port <" + p.Name + ">: " + p.CustomDataTypes[0] )

for p in node.OutputPorts:

	if p.DataType == constants.siICENodeDataCustomType:

		log( "Custom data type for output port <" + p.Name + ">: " + p.CustomDataTypes[0] )

# Output:

# INFO : Custom data type for input port <InState>: GridWalkState_v1

# INFO : Custom data type for output port <OutState>: GridWalkState_v1

関連項目

ICEAttribute.CustomDataTypes ICENodePort::GetCustomDataTypes ICENodeDef::DefineCustomType