Demonstrates how to create a custom content generator for Tech Doc schema elements.
The project's import package adds a collection of examples showcasing how you can customize the look and functionality of a Tech-Doc.
The first example includes a new content generator method for the ItemInfo schema element, replacing the out-of-the-box implementation. The new content generator method, labs_ItemInfoContentGenerator
, populates every new ItemInfo element with the name, description, cost, major revision/generation, state, and created date for the selected assembly (Part item). The method also adds the assembly's BOM in a tabular layout.
The second example includes a new schema, which allows you to modify the size of graphics within your Tech-Doc. The example allows you to set the width of a graphic by editing an attribute, however this could be extended to apply any styling to a graphic. These changes don't require a new content generator, just modifications to the schema and stylesheet.
The third example allows you to create a table which contains dynamically generated links for each row of the table. It includes a new document type, called Link Example
The example uses the part ItemType and a single entry, but the code could easily be modified to work for other ItemTypes as well. The content generator method labs_PartLinkGenerator
, shows how you can modify the attributes of a TextDocumentElement to add an external hyperlink dynamically within a table cell.
This project also includes the ability to create a template for future Tech-Docs. This is incredibly handy if you need multiple documents which follow a specific format. The instructions on how to use templates can be found below.
This project and the following release notes have been migrated from the old Aras Projects page.
Release | Notes |
---|---|
V1.3 | Added more examples and updated for SP15 |
v1.2 | Adds template functionality. |
v1.1 | Fixes an import error. |
v1.0 | First release. Though built and tested using Aras 11.0 SP9, this project may function in older releases of Aras 11.0. |
Project | Aras |
---|---|
v1.3 | 11.0 SP15 |
v1.2 | 11.0 SP9 |
v1.1 | 11.0 SP9 |
v1.0 | 11.0 SP9 |
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed (version 11.0 SPx preferred)
- Aras Technical Documentation is installed
- Aras Package Import tool
- CustomTechDocs import package
The Aras Update package for Tech-Docs is not supported in SP15
- Backup your database and store the BAK file in a safe place.
- Open up the Aras Package Import tool.
- Enter your login credentials and click Login
- Note: You must login as root for the package import to succeed!
- Enter the package name in the TargetRelease field.
- Optional: Enter a description in the Description field.
- Enter the path to your local
..\CustomTechDocs\Import\imports.mf
file in the Manifest File field. - Select the following in the Available for Import field.
- aras.labs.CustomTechDocs
- com.aras.innovator.solution.TechDoc
- com.aras.innovator.tdf
- com.aras.innovator.solution.PLM
- Select Type = Merge and Mode = Thorough Mode.
- Click Import in the top left corner.
- Close the Aras Package Import tool.
You are now ready to login to Aras and try out the CustomTechDocs project.
Pre-requisite: The Aras instance should include some Parts with BOM relationships.
- Log in to Aras as admin.
- Navigate to Technical Documentation > Technical Documents.
- Create a new Technical Document with the
Standard
schema. - Add an ItemInfo element to the document, selecting a Part with Part BOM relationships when the search dialog appears.
- Save the document.
- Log in to Aras as admin.
- Navigate to Technical Documentation > Technical Documents.
- Create a new Technical Document with the
Standard
schema. - Check off the Is Template field on the Tech Doc form.
- Save the document.
- Add some content to the template document.
- Save, unlock and close the document.
- In the main grid, right click the new template document and select Create New From Template.
The new document will open in a new tab. The content will be populated based on the selected template.
- Log into Aras as Admin.
- Navigate to Technical Doucmentation > Technical Documents.
- Create a new Technical Document with
Image Size Example
schema. - Add a graphic to the document.
- Right-click the graphic element, and select Edit Attributes
- Type Width: 100px and save the attributes. You can add any CSS Styling to the image here.
Pre-requisite: The Aras instance shoudl include multiple Parts.
- Log into Aras as Admin.
- Navigate to Technical Doucmentation > Technical Documents.
- Create a new Technical Document with
Link Example
schema. - Add a
PartLink
item to the document. - Select a part to reference within the table.
- Highlight the cell with the hyperlink
- Press the
Test Link
buton which appears in the toolbar.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
For more information on contributing to this project, another Aras Labs project, or any Aras Community project, shoot us an email at [email protected].
Created by Eli Donahue for Aras Labs. @EliJDonahue
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.