Filter.IsApplicable

導入

v4.0

詳細

フィルタが入力オブジェクトに適合している場合は、true を戻します。このメソッドを使用すると、指定されたタイプのオブジェクトでフィルタを使用できるかどうかをすばやく判断できます。

スクリプト 構文

oBoolean = Filter.IsApplicable( Object );

戻り値

Boolean

パラメータ

パラメータ タイプ 詳細
オブジェクト SIObjectX3DObjectSubComponentPropertyまたはXSICollection 呼び出し側でこの引数が省略された場合は、関数は現在選択されているオブジェクトからなるXSICollectionオブジェクトを受け取ります。

VBScript の例

'--------------------------------------------------------------------
'This example shows how to use the IsApplicable method 
'
' README: install the example from the filter object help 
' page before running this example.
'--------------------------------------------------------------------
set f = Application.Filters("LargeMesh")        
if ( typename(f) <> "Nothing" ) then
        set model = ActiveSceneRoot
        set cone = model.AddGeometry( "Cone", "MeshSurface" )
        LogMessage f.name & ".IsApplicable("& cone &"): " & f.IsApplicable(cone)
        'INFO : "LargeMesh.IsApplicable(cone): True"
end if