v8.0 (2010)
この ICEAttribute に定義されているカスタムデータ型の Array を戻します。カスタムデータ型は、カスタム ICENode によって定義され、カスタム ICENodePort および ICEAttributes を定義するためのデータ型として使用されます。カスタムタイプがこの ICEAttribute で定義されていない場合は、配列は空になります。
// get accessor Object rtn = ICEAttribute.CustomDataTypes; |
# # 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 |