Tech Docs - 'Zoom'
We have some users who want larger text in their Tech Docs, so I'm looking for a way to dynamically apply CSS rules on a button. When I go into the developer console, use the element selector to pick the editor pane and then run the following, it's doing what I want (in this case setting the editorContentNode to 150% width. [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:e5e35de4-1871-4c0d-b24f-cb65c9f8189f:type=text&text=const%20nodes%20%3D%20document.querySelectorAll%28%27.editorContentNode%27%29%3B%0D%0Anodes.forEach%28node%20%3D%3E%20%7B%0D%0A%20%20node.style.width%20%3D%20%27150%25%27%3B%0D%0A%7D%29%3B] But, if I apply that in a button either in the tdf editor toolbar or on the itemview toolbar, it does nothing. I'm assuming this is based on the structure of the DOM inside Aras. Any tips or tricks on sorting out how in the heck to select this? I'd prefer it from the tdf editor toolbar to keep all the tools in one spot. Thanks in advance!3Views0likes1CommentTech Doc Content automation from CUI Method Call
Hello, I've written a CUI method to instantiate a new Tech Doc from within the "Parts" page, and its' fields are set, including which schema to use. There's a necessity to build out this new corresponding tech doc with a very specific content. I want to insert and start building the Tech Doc programmatically within this method. I've seen this example here: GitHub - ArasLabs/content-generator-samples: This project contains code snippets to demonstrate how to create and manipulate content in Aras Technical Documents. [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:13ea21b3-5e3f-4557-92ff-1de6a15db1ff:type=csharp&text=%2F%2FMethodTemplateName%3DCSharp%3AAras.TDF.ContentGenerator%28Strict%29%3B%0AItemDocumentElement%20targetItem%20%3D%20targetElement%20as%20ItemDocumentElement%3B%0A%0Aif%20%28targetItem%20%21%3D%20null%29%20%7B%0A%09targetItem.ClearChilds%28%29%3B%0A%0A%09%2F%2F%20if%20referenced%20item%20was%20set%2C%20then%0A%09if%20%28%21targetItem.IsEmpty%29%0A%09%7B%0A%09%09TableDocumentElement%20tableElement%20%3D%20%28TableDocumentElement%29%20this.Factory.NewTable%28%22Table%22%2C%203%2C%205%29%3B%0A%09%09tableElement.GetCell%280%2C%200%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20%22Item%20Info%20Table%22%29%29%3B%0A%0A%09%09for%20%28int%20i%20%3D%200%3B%20i%20%3C%20tableElement.CellCount%3B%20i%2B%2B%29%0A%09%09%7B%0A%09%09%09tableElement.MergeCells%280%2C%20i%2C%20MergeDirection.Right%29%3B%0A%09%09%7D%0A%0A%09%09tableElement.GetCell%281%2C%200%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20%22Id%22%29%29%3B%0A%09%09tableElement.GetCell%281%2C%201%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20%22Name%22%29%29%3B%0A%09%09tableElement.GetCell%281%2C%202%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20%22Classification%22%29%29%3B%0A%09%09tableElement.GetCell%281%2C%203%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20%22Status%22%29%29%3B%0A%09%09tableElement.GetCell%281%2C%204%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20%22Date%20of%20creation%22%29%29%3B%0A%0A%09%09tableElement.GetCell%282%2C%200%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20targetItem.ItemId%29%29%3B%0A%09%09tableElement.GetCell%282%2C%201%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20targetItem.GetItemProperty%28%22name%22%2C%20%22%20%22%29%29%29%3B%0A%09%09tableElement.GetCell%282%2C%202%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20targetItem.GetItemProperty%28%22classification%22%2C%20%22%20%22%29%29%29%3B%0A%09%09tableElement.GetCell%282%2C%203%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20targetItem.GetItemProperty%28%22state%22%2C%20%22%20%22%29%29%29%3B%0A%09%09tableElement.GetCell%282%2C%204%29.AddChild%28this.Factory.NewText%28%22Title%22%2C%20targetItem.GetItemProperty%28%22created_on%22%29%29%29%3B%0A%0A%09%09targetItem.AddChild%28tableElement%29%3B%0A%09%7D%0A%7D] With aras innovator, inn.newItem("tp_block", "tp_GetDocument");, I am able to reference the document I intend to fetch (considering that it exists at this statement, otherwise I also create it first) My main issue to tackle now is how to, with this document variable in cache, create new Item Document Elements, such as a Break, Chapter, Section, etc. Is this possible? Is there a way to get reference to the root Item Document Element? Thank you0Views0likes2CommentsTech Docs: Cross Reference Link
I'm evaluating using Tech Docs instead of Word for some of our development documentation. One feature we currently use a lot is cross referencing to difference sections. For example, "see Section 2.4". In Word these are links that update if the section numbers change. In Tech Docs, there is the Add Link feature which allows you to select a section and create a hyperlink. Is there anyway to style the link with information from the target? Or is there another way to do it?0Views1like3CommentsTDF / Tech Docs: DocumentSchemaElement for Section from Content Generator?
I've already looked at this Labs project: GitHub - ArasLabs/content-generator-samples: This project contains code snippets to demonstrate how to create and manipulate content in Aras Technical Documents. and also in the documentation, but can't see the proper commands for Section or Chapter. Basically I'm looking for the proper content generator code to: - Create a section or chapter with the title pre-filled out (such as "Introduction") - Create a sub-section or sub-chapter below the above (after the pre-filled out content). This: DocumentSchemaElement sectionElement = (DocumentSchemaElement) this.Factory.NewElement("Section") ; sectionElement.AddChild(this.Factory.NewText("Title","Introduction")); targetElement.AddChild(sectionElement); Sort of works. It creates a section, but it doesn't fill out the Title of the section, it fills it as a child. Does anyone have any guidance on this? Thanks in advance!!327Views0likes3CommentsTechnical Documentation - Content Generator for an Image?
In Tech Docs Content Generator examples, I've run across: this.Factory.NewItemProperty this.Factory.NewText this.Factory.NewTable this.Factory.NewElement I'm trying to pull a Graphic from another item (requirement) and apply it into the Tech Doc. I've been able to pull the image ID and can get the content generator to create a graphic placeholder, but I can't figure out the right Factory command to generate a Graphic that's got an ID applied to it. At the moment it makes a blank block, that you can select a graphic, but then it doesn't save... The below is nested inside the content generator: String AML = @"<AML>" +"<Item type='re_ImageReference' action='get'>" +" <source_id>" + targetItem.ItemId + "</source_id>" +" <related_id>" +" <Item type='tp_image' action='get'/>" +" </related_id>" +"</Item>" +"</AML>"; Item reImages = this.Factory.InnovatorInstance.applyAML(AML); int numImages = reImages.getItemCount(); // Loop through each Catalog Entry and fill the remaining table rows for(int i=0; i < numImages; i++) { Item reImage = reImages.getItemByIndex(i); Item imageItem = reImage.getPropertyItem("related_id"); tableElement.GetCell(1, 0).AddChild(this.Factory.NewElement("Graphic")); } // for() loop over images entries The highlighted section I'm assuming needs to have some sort of assignment from the Element type (Graphic) to the source ID (imageItem result). Appreciate any insight on this! If there's a reference that has all the Factories (for instance lists and other content), that'd be much appreciated!Solved477Views0likes1CommentAras TechDocs - how do I add the translations of documents?
Hi community, does anybody of you use TechDocs in combination with a language pack, so you can build a Technical Document in two languages? This question may sound silly. But how can I actually import the translated version of a document? In TechDocs I am just able to edit the default language (e.g. English) of a document. The secondary language (e.g. German) is always read-only and a so far didn´t find any way to actually start the translation of my document or to import the translated version. It´s really strange. TechDocs offers us buttons to change the documents´ language. We can make side-by-side comparison with the language variants. The user guide mentioned a Translation Process. That´s all fine. But there are no hints how to actually start the process of translation itself. I would be more than happy about any hints! Many thanks! Angela4.6KViews0likes3CommentsRequirements Document: Error from Editor?
Hello, Aras Ver. 12 For a Client we have had to customize the attributes for Requirements and Requirements Document objects. No changes at the moment have been made to the XML schema. Requirements Documents can be created, but as soon as the user clicks on the "Requirements Document Editor" they get the below error: We've made no changes or edits to the schema. Is it necessary to make changes to the XML schema when adding properties to requirements? We did create a Class for the requirements document; however this appears whether the class is assigned or not. Appreciate any assistance!2.2KViews0likes3CommentsDear all, do we have Batch loader for ARAS Technical Documentation module (similar to what we have for Parts and BOM creation) to create contents in tech doc editor and create / update?
Dear all, do we have Batch loader for ARAS Technical Documentation module (similar to what we have for Parts and BOM creation) to create contents in tech doc editor and create / update?5.2KViews0likes6CommentsRead/write TechDoc content via REST (or similar) - where is the content stored?
Hi Community, does anybody know, where TechDocs actually stores the documents native data? E.g. is it possible to read the individual titles, sections or text elements? I have seen that native xml content of the document is stored in the content property of ItemType tp_Block. Is this the only location where the TechDoc document itself is stored? Or are there another ItemTypes involved? In the xml itself each entry has an own aras-id. But I wonder if this aras-id is really related to a existing item in the database? I want to connect to tech docs from am external data source via REST. The external source shall check if document content is still valid and maybe also write TechDoc content. In MPP we have individual items for Steps/Operation that store the data than will later render the process plan. Do we have something similar in TechDocs? Or do I need a separate ItemType to store these kind of content, so we later can use the data to generate the TechDoc from these item data? Thanks for any help! Angela7.7KViews0likes3Comments