libraryLocation()

概要

デザインライブラリ文字列、または "仕様" を与えられ、ライブラリの場所を返します。ライブラリが見つからない場合は NoValue が返されます。

構文

libraryLocation ( libspec As Any ) As Any 
引数 [タイプ] 説明
libspec すべて 名前文字列、またはライブラリの仕様としてのデザイン ライブラリです。

例 1

Intent >libraryLocation(:projectLib) 
--> "C:\Users\Public\Documents\Autodesk\Inventor ETO 2012\Inventor\Samples"

例 2

Intent >libraryLocation("projectLib") 
--> "C:\Users\Public\Documents\Autodesk\Inventor ETO 2012\Inventor\Samples"

例 3

Intent >libraryLocation(designLibrary(:basePart)) 
--> "C:\Program Files\Autodesk\Inventor ETO Components 2012\Library\Standard\baselib"

例 4

Intent >libraryLocation(:unknownLib) 
--> NoValue 
デザイン ライブラリが存在しないため、libraryLocation()が NoValue を返しました。