libraryLocation()

Synopsis

Given a design library name , string , or "spec", returns a library location. If the library is not found, NoValue is returned.

Syntax

libraryLocation ( libspec As Any ) As Any 
Argument Type Description
libspec Any The design library as a name , string , or library spec.

Example 1

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

Example 2

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

Example 3

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

Example 4

Intent >libraryLocation(:unknownLib) 
--> NoValue 
libraryLocation() returned NoValue since the design library is nonexistent.