How to add your knowledge

libraryLocation()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1
    4. 4. Example 2
    5. 5. Example 3
    6. 6. Example 4

    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.