ICEAttribute.CustomDataTypes

導入

v8.0 (2010)

詳細

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

C#構文

// get accessor

Object rtn = ICEAttribute.CustomDataTypes;

Python の例

#

# Example to demonstrate how to get the custom data types from an ICEAttribute

#

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 attribute with custom data types

attr = app.ActiveSceneRoot.FindChild("grid").ActivePrimitive.Geometry.GetICEAttributeFromName( "GridWalkerState" );

log( "GridWalkerState attribute's custom data type: " + attr.CustomDataTypes[0] )

# Output

# INFO : GridWalkerState attribute's custom data type: GridWalkState_v1

関連項目

ICENodePort.CustomDataTypes ICEAttribute::GetCustomDataTypes ICENodeDef::DefineCustomType