Dictionary.Info

説明

オブジェクトまたはファミリの説明を戻します。ファミリを指定した場合は、ファミリ内のすべてのオブジェクトのリストが戻されます。オブジェクトもファミリも指定していない場合は、すべてのファミリのリストが戻されます。

スクリプト 構文

oString = Dictionary.Info( [Type], [Family] );

戻り値

String

パラメータ

パラメータ タイプ 詳細
タイプ String オブジェクトのタイプ
Family siFamily ファミリ名

1. VBScript の例

' Get all information for Twist operator
LogMessage Application.Dictionary.Info("Twist")

2. VBScript の例

' Get list of all members if the Lattice family
LogMessage Application.Dictionary.Info(,"Operators")

3. VBScript の例

' Get all information for all members of the Curve family
'***********************************
'       Declarations
'
Option Explicit
Dim sList               ' container for list of curves
Dim aCurves             ' arrays of curves in list
Dim i                   ' for looping through list
Dim sName               ' name of indiv. curves
Dim sInfo               ' container for info
'***********************************
'       Get Curve information 
'
' Store list of curves in string container
sList = Dictionary.Info( ,siCurveFamily )
' Convert the list to an array of curves
aCurves = Split( sList, ", ", -1, vbTextCompare )
' Write header to History log
LogMessage "======================================="
LogMessage "    CURVE INFORMATION                "
LogMessage "---------------------------------------"
' Run through the collection to get the info for each item
For i = 0 to UBound(aCurves)
        LogMessage "---------------------------------------"
        ' Set up name of current operator
        sName = aCurves(i)
        ' Based on curve name, get all dictionary info
        sInfo = dictionary.info( sName )
        ' Write info to History log
        LogMessage sInfo
Next 
'***********************************
'       Output
'
'INFO : "======================================="
'INFO : "       CURVE INFORMATION                "
'INFO : "---------------------------------------"
'INFO : "---------------------------------------"
'INFO : "Circle
'Families = Geometry, Curves, Geometries
'"
'INFO : "---------------------------------------"
'INFO : "Arc
'Families = Geometry, Curves, Geometries
'"
'INFO : "---------------------------------------"
'INFO : "Spiral
'Families = Geometry, Curves, Geometries
'"
'INFO : "---------------------------------------"
'INFO : "Square
'Families = Geometry, Curves, Geometries
'"