EngData

EngData
This namespace holds top-level commands and queries related to Engineering Data.

CreateLibrary

Creates a new Engineering Data library.

Return     The created Engineering Data library.
    Type     DataContainerReference

Required Arguments

Name    The name of a new library.
    Type     string

Optional Arguments

FilePath    The target path for a new library.
    Type     string

OpenLibrary

Opens a library of engineering information so that it can be viewed and if permissions allow, edited.

Return     The DataContainerReference for the library that was opened.
    Type     DataContainerReference

Required Arguments

Source    The source of the library.
    Type     string
Example

This code shows how to open a library from the provided samples.

    installDir = r"C:\Program Files\ANSYS Inc\v121"
    library1 = EngData.OpenLibrary(
       Name="General Materials",
       Source=installDir+r"\Addins\EngineeringData\Samples\General_Materials.xml")