How to add your knowledge

Style Libraries

    Table of contents
    No headers

    A style library contains the definition of individual style types. When you apply a style to an object in a document, the attributes of the style are retrieved from the style library.

    By default, all styles in the style library associated with the active drafting standard are available for formatting objects in documents. Usually the style library is managed by the CAD administrator, so that the integrity of the library is maintained across design files.

    You can use a single global library so that all designers use the same styles, or you can specify a library for a specific set of design files.

    What is a style library?

    Autodesk Inventor LT provides a style library that contains a set of common materials, colors, and lighting for parts, as well as common drafting standards such as ANSI, ISO, and DIN for drawings. Style libraries are a common source of styles for all documents. Each style library is a collection of .xml files, one for each style type. For example, there is a file for dimensions, layers, and all other style types.

    You can see a list of the style types in the browser of the Style and Standard Editor. Click Manage tabStyles and Standards panelStyles Editor.

    When to use style libraries

    A style library is a good way to manage styles so that they can be shared across documents. For example, material styles can be made available so that all parts have access to the same definitions. In drawings, using styles assures uniform annotations, including such details as arrowheads, dimensions, leaders, center marks, and so on.

    A good time to start using style libraries is when you start a new design project, are new to Autodesk Inventor LT, or are an individual designer or work in a small group. You can use the default style library associated with the drafting standard.

    To get started, you can use the default styles that are associated with each drafting standard. That is, ANSI comes with its own set of styles, as does DIN, JIS and other international standards. As your company standardizes on how to format objects, styles can be added or edited, and the changed styles saved to the style library. New documents will automatically have the styles available for formatting.

    You might want to transition to using a style library later if you have active legacy files, you work in a large workgroup, and have need for one or more custom style libraries.

    Use a style library when:

    • You work in a workgroup that needs a common source of styles.
    • You use document formatting changes from a CAD Administrator.
    • Need to easily deploy changes to styles.
    • You share formatting standards without providing internally controlled templates or documents.

    Consider using a Style Library out of the box if you:

    • Are starting a new project or are a new user.
    • Work as an individual or in a small workgroup.
    • Can probably use the Default Style Library that shipped with Autodesk Inventor LT.

    Working without a style library

    The Application Options dialog box includes a setting that turns off a style library. When you turn a style library off, styles are only available in a document template. Use the document template for access to styles. If you change styles in the templates, all future documents will access the changes, but previously created documents will not.

    • Updating documents to consume style changes from a CAD Administrator and sharing styles between documents is more difficult. Styles must be manually exported, and then imported into every document requiring the change, including all template files for a project.

    If you later decide to work with the style library on, update the styles for previously created documents.

    To transfer styles from one document to another, import or export styles.

    Working with a style library

    To specify the style library to use, turn on the style library and then specify the default style library on the File tab of the Application Options dialog box.

    Use a style library when:

    • You share styles with other designers.
    • You use document formatting changes from a CAD administrator.
    • You share formatting standards without providing internally controlled templates or documents.

     

    Procedures

    Save styles to a style library

    You can create or edit a style, and then save the changed version to the style library. If the style has the same name as a style that exists in the style library, it replaces the library version.

    Access to a style library may be controlled by the CAD administrator. It is usually a good practice for the CAD administrator to maintain a master copy of a style library and copy it if modifications are needed. Using this practice, you can always retrieve the default styles from the master library.

    1. Create or open a document with the styles you want to copy to the style library.
    2. On the ribbon, click Manage tab Styles and Standards panelSave.
    3. In the dialog box, all styles in the document are listed. Click column headers to sort contents.
      • In the Changed column, all styles that do not match the library are labeled Not in Library.
      • In the Save to Library column, styles that do not match the library are automatically labeled Yes. Click to change to No, if desired.
      • To mark all styles at once, click Yes to All or No to All.
    4. Click OK to save styles marked Yes, or Cancel to close the dialog box without saving styles.
    NoteWhen you save a style to a style library, substyles are automatically saved. You are prompted to save referenced substyles that are different from the library. For example, a dimension style uses a text style as a substyle. If you change the dimension style and text style, saving the dimension style to the style library prompts you to also save the text style to the library.

     

    Manage style libraries

    Style Library Manager is a stand-alone tool used for the administration of style libraries. This tool works directly with the style library XML files on disk, and is not used in the management of styles inside Autodesk Inventor LT documents. It is accessed from the Microsoft® Windows® Start menu, and is found in the Tools submenu for Autodesk Inventor LT.

    Use Style Library Manager to:

    • Create new style libraries
    • Manage styles in style libraries
    • Manage styles between multiple style libraries

    Create style libraries

    Autodesk Inventor LT installs with a default style library designed to leverage of all new capabilities of styles.

    You can create your own style libraries in two different ways: Copy an existing style library or create an empty style library. The target directory for the new library cannot include other style library.

    After you create a style library, use Style Library Manager or Style and Standard Editor to add or remove particular styles.

    Rename and delete styles inside of a library

    Use Style Library Manager to rename styles inside of a library. Renaming a style in the library does not rename the same style in any other library or document. Once a style is renamed, all document copies of the style loose their name match and are considered locally cached style.

    The only way to delete a style from a library is through the Style Library Manager.

    NoteRename and Delete commands are accessed from the right-click menu when selecting one or more styles.
    TipThere is no Undo in the Style Library Manager. Renaming, copying, or deleting of styles cannot be undone. We recommend you create a backup copy of your library before you make changes.

    Copy styles between libraries

    Styles are copied between libraries using the Style Library Manager. To copy a style from one library to another, load the source library into Style Library Manager and click the Copy Selected Styles command between the Style Library 1 and Style Library 2 panes. See the Style Library Manager Help for more details.

    Manage Style Library Contents

    A style library is a group of named XML files in a directory. There is one XML file per style type (for example: color.xml, text.xml). Since the names of the XML files must be the same for each style library, only one library can exist in a directory.

    To be considered a valid style library, all predefined XML files must be present in the directory.

    The best way to share a subset of styles from a library (for example, a single standard or all materials form a specific library) is to use the Import/Export styles function in the Style and Standard Editor, or create an empty style library and copy the desired styles using the Style Library Manager.

    NoteAn exported style file (*.styxml) cannot be used as part of a style library.

    Incomplete Style Libraries

    Though a style library is made up of several separate XML files, Autodesk Inventor LT and the Style Library Manager treat the library as a single entity. If some of the predefined XML files required for a style library are missing from a directory, Autodesk Inventor LT displays an error message indicating files are missing and cannot be loaded.

    Restoring the Autodesk Inventor LT Default Style Library

    A utility for restoring the default Design Data directory files is located on the Autodesk Inventor LT Install CD in the Support directory. This utility replaces the original default style library that ships with Autodesk Inventor LT, as well as the Thread.xls and Clearance.xls spreadsheets.

    Prevent Style Library Changes

    In a multi-user environment, CAD administrators may want to prevent users from changing a style library.

    • Use a Microsoft Windows file property setting. In Microsoft Windows Explorer, select all the XML files that make up the library or the library directory folder itself, right-click, select Properties, and set to Read Only.

    If a single XML file is read-only, the entire library is treated as read-only.

    Pack and Go

    The Autodesk Inventor LT Pack and Go utility optionally includes a style library. It is included in the Design Data subdirectory.

     

    Create a style library

    You can create a style library using one of several methods. In general, new style libraries are created by CAD administrators so that uniform styles are assured throughout all design documents.

    1. Click Start menu Programs Autodesk Autodesk Inventor LT Tools Style Library Manager.
    2. Click the Create New Style Library command above the Style Library 2 pane.
    3. In the Creation Method box, click the arrow to select Copy Existing Style Library or Create Empty Style Library.
    4. In the New Style Library Location box, accept the default location or browse to the folder where you want to store the new library. If the library is accessed by a document, place it in a folder recognized by design file locations.
    5. If copying a style library, in the Source Style Library to Copy box, accept the default library or browse to the library you want to copy. This option is unavailable if you create an empty library.
    6. Click OK to create the library and close the dialog box.

    Exit the Style Library Manager. Use the Style and Standard Editor to customize the styles in the new style library.

     

    Copy, rename, or delete library styles

    The Style Library Manager is primarily used by CAD administrators to copy, rename, and delete library styles. The CAD administrator controls the style library contents and assures that designers using styles have the same style definitions, assuring uniform document formatting.

    The Style Library Manager uses the Create New Style Library command to create new style libraries.

     

    In general, style libraries are read-only, except to make necessary changes. The Styles Library Manager uses the read-only file property, and disregards the library status specified by the Use Style Library=Read Only option in Application Options.

    Any changes made to a style library are not available in other documents until the current Autodesk Inventor LT session closes and a new session is opened.

    You can create new styles or rename styles in a document, but they affect only that document. Take a separate step to save a new or changed style to a style library to replace the library version. Access to the style library may be controlled by the CAD administrator.

    Copy styles from one style library to another style library

    You can develop style libraries that are specific to a given design document. This procedure copies styles you have already defined in one style library to another style library.

    1. Click Start menu Programs Autodesk Autodesk Inventor LT Tools Style Library Manager.
    2. In Styles Library 1, click the down arrow to select or click Browse to locate the style library whose styles you want to copy.
    3. In the Choose Style Type column, click a style type to list all defined styles in Style Library 1.
    4. In Style Library 2, click the down arrow to select or click Browse to locate a style library.

      If appropriate, click Create New Style Library:

      • In Creation Method, select Copy Existing Style Library or Create Empty Style Library.
      • Browse to the folder where the library is located.
      • If copying a style library, click the arrow or browse to select the Source Library for Copy. The existing styles are listed in the Style Library 2 window.
    5. Click one or more styles, and then click to add them to Style Library 2.
    6. Continue to click style types to add to Style Library 1, and then select and add them to Style Library 2.
    7. Styles in one library might not match the styles in another library. Compare the styles in both libraries.
       

      Click Show All Styles to list all styles in both style libraries.

       

      Click Show Mismatched Styles to show styles whose definitions are different in the two libraries. Mismatched styles are shown in red.

       

      Click Show Unique Styles to show styles that exist in one library but not the other. Unique styles are shown in blue.

    8. Click the right and left arrows to add or remove styles as desired.

      If mismatched substyles are detected, the Manage Styles dialog box opens. Indicate to overwrite the version of the substyle in the destination library or retain the current version.

    9. Click Close to save the libraries.
    NoteOnly the selected style is copied from one Style Library to another. Substyles are only copied if they do not exist in the destination library. If a style exists with the same name, the destination version is used.

    Rename styles in a style library

    A style name can change in the style library, but all documents that reference the old name lose their association to that style.

    1. Click Start menu Programs Autodesk Autodesk Inventor LT Tools Style Library Manager.
    2. Click the arrow or browse to the library whose style you want to rename.
    3. In the Style Library 1 or 2 window, right-click a style name and select Rename.

      A warning asks you to confirm that documents links to the style will be broken. Click Yes to continue or No to cancel renaming. If Yes, enter the new style name.

    4. Continue renaming as needed, and then click Close to save the changes.

    Delete styles from a style library

    A style can be deleted from a style library, but all documents that reference the old name lose their association to that style.

    1. Click Start menu Programs Autodesk Autodesk Inventor LT Tools Style Library Manager.
    2. In the Style Library 1 or 2 window, click the arrow or browse to the library whose styles you want to delete.
    3. Select a style type in the Choose Style Type list. Then right-click a style name in the Style Library 1 or 2 window and select Delete.

      A warning asks you to confirm that the style will be permanently deleted from the style library. Click Yes to delete the style or No to cancel delete.

      NoteYou cannot use Undo to reverse a deletion.
    4. Continue deleting as needed. When finished, click Exit to close the Style Library Manager dialog box.
    TipUse Manage tab Styles and Standards panel Purge to remove unused styles from the current document, and optionally, all referenced documents.

     

    References

    Save styles to style library

    Saves selected styles in the document to the style library. The current style library version is replaced with the new version.

    In other documents that use the style, you must manually update to apply the new version of the style in the library.

    Access:

    Ribbon: Manage tabStyles and Standards panel Save

    Click a column heading to sort contents. All columns resort to correspond with the new order.

    Document Name

    Shows file name in which the style is used.

    Style Name

    Lists styles in the current document.

    Type

    Identifies the style type.

    Changes

    Indicates if a style was changed in the document or library. If the style does not match the library, it is marked Not in Library.

    Save to Library?

    Switches individual styles to save to the library. If Yes, the style in the library is updated with the version in the current document. If No, the library style is not updated with the changed style in the current document.

    NoteStyles that are not in the library are automatically switched to Yes, but can be changed to No.

    Click Yes to All to save all styles in the document to the style library or No to All to retain the styles in the current document, but not update the library.

    NoteWhen you save a style to a style library, substyles are automatically saved. You are prompted to saved referenced substyles that are different from the library. For example, a dimension style uses a text style as a substyle. If you change the dimension style and text style, saving the dimension style to the style library prompts you to also save the text style to the library.

    Create New Style Library

    Creates a style library by specifying the creation method, the library location, and the source library.

    Access:

    Click Start menu Programs Autodesk Autodesk Inventor LT Tools Style Library Manager. In the Style Library Manager, click Create New Style Library.

    In the Create New Style Library dialog box:

    Creation Method selects how you want to create the library. Click the arrow to choose Copy Existing Style Library, and then modify as appropriate or Create Empty Style Library, and then select styles from one or more libraries.

    New Style Library Location browses to the folder where you want to store the new library.

    Source Style Library to Copy browses to the library you want to copy when the creation method is Copy. Unavailable when the creation method creates an empty style library.

     

    Style Library Manager

    The Style Library Manager is used primarily by a CAD administrator to:

    • Copy styles from one style library to another style library.
    • Rename styles in a style library.
    • Delete styles from a style library.

    Any changes made to a style library are not available in other documents until the current Autodesk Inventor LT session closes and a new session is reopened.

    Some styles reference other styles as substyles (for example, the dimension style references the text style as a substyle). When copying a style library, the Style Library Manager opens the Manage Styles dialog box if mismatched substyles are detected in the source and destination libraries. For each substyle, confirm to replace the current version with the source version.

    NoteIf the source library substyles are not copied, substyles from the destination style library are used instead. The overall definition of the dimension style changes, because the set of substyles it uses has different characteristics compared to the source.

    The Style Library Manager also accesses the Create New Style Library dialog box to create new style libraries.

    Access:

    Click Start menu Programs Autodesk Autodesk Inventor LT Tools Style Library Manager. In the Style Library Manager dialog box, click a style type to populate the Style Library pane with defined styles.

    Choose Style Type

    Lists all style types. Click a style type to show all definitions in the Style Library column.

    Style Library 1

    Shows styles of the selected type in the specified library.

    Arrow

    Lists available style libraries. Click to select.

    Browse

    Click to browse to the appropriate style library.

    Style Library 2

    Shows styles of the selected type in the specified library.

    Arrow

    Lists available style libraries. Click to select.

    Create New Style Library

    Creates a style library by copying an existing library or creating an empty library, specifies its location, and names the source library to copy, if applicable.

    Browse

    Click to browse to the appropriate style library.

    Comparing Styles Between Definitions

    If a style exists in both Style Libraries and is an exact name value match (that is, Equal), then the text in the style lists has a normal font display.

    If a style exists in both Style Libraries, is an exact name match, and is not a value match (that is, Not Equal), then the text for this style name displays as bold, underlined, and red.

    If a style only exists in one Style Library (that is, is Unique), then the text for this style name displays as bold, underline, and blue.

    Filter commands

    Shows differences between the lists in the style libraries:

     

    Click Show All Styles to list all styles in both style libraries.

     

    Click Show Mismatched Styles to show styles whose definitions are different in the two libraries.

     

    Click Show Unique Styles to show styles that exist in one library but not the other.

    Copy style commands

     

    Copies selected styles from Style Library 1 to Style Library 2.

     

    Copies selected styles from Style Library 2 to Style Library 1.

    Substyles are only copied from one style library to another if they do not exist in the target library. To avoid replacing an existing style accidentally, you are prompted to replace the target style with the source style. It occurs if a substyle exists in the target style library, and it is different from the substyle in the source library.

    Manage styles dialog box

    When copying a style library, if a source style and one or more of its substyles differ from the destination library, you are asked to select which substyles to copy to the destination library.

    For example, a dimension style uses the text style as a substyle. If the text substyle referenced by the dimension style is different from the text style in the destination style library, confirm to replace the destination text style with the text substyle from the source style library.

    If you choose to use a combination of Yes and No in the Overwrite column, the style in the destination style library is not identical characteristics compared to the source.

    Access:

    In the Style Library Manager dialog box, click the Show Unique Styles command or Show Mismatched Styles command to list styles in red text. Listed styles do not match in the source and destination style libraries. Right-click a red style name and then click the arrow button to copy it. The Manage Styles dialog box opens.

    Style Name

    Lists the destination style name and its standard.

    Path

    Shows the path of the destination style.

    Type

    Lists the style type.

    Overwrite?

    The default setting is No. For each listed style, click in the column to switch to Yes.

    To set all styles at once, click Yes to All (to overwrite styles in the destination library) or No to All (to copy only the parent style, but not the substyles).