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?
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.2KViews0likes6CommentsTechDocs Content Generator - how to add TOC-Section content automatically?
Hi community, I want to use a TechDoc Content Generator Method so I can automatically fill the TOC-Section title according to the target language (de/en). In addition I also want to add the element 'TOC' automatically. As soon as users add a new TOC-Section, they shall get the following view. Unfortunately I right now struggle with both the multilingual title and the 'TOC' element.. My idea was to use something like this: //MethodTemplateName=CSharp:Aras.TDF.ContentGenerator(Strict); if (/* document language is German */) { // Add German title targetElement.AddChild(this.Factory.NewText("Title", "Inhaltsverzeichnis")); } else if (/* document language is English */) { // Add English title targetElement.AddChild(this.Factory.NewText("Title", "Table Of Contents")); } // Add TOC element targetElement.AddChild(this.Factory.New????("TOC")); // what do I have to use here? Would be cool if someone know how to use the ContentGenerator for this purpose. This way all kind of default elements could be automatically filled with default values. Thanks for any hints! Angela5.1KViews0likes3CommentsRequirements 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.2KViews0likes3CommentsTechnical 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!Solved477Views0likes1CommentTDF / 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!!327Views0likes3CommentsTech 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!0Views0likes1CommentTech 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 you0Views0likes2Comments