# Line Generation Tool (XML & CSV support)

**URL:** <https://forum.visualcomponents.com/t/line-generation-tool-xml-csv-support/780>\
**Category:** Visual Components Add-on Samples\
**Created:** [August 22, 2019, 11:26am UTC](https://forum.visualcomponents.com/t/line-generation-tool-xml-csv-support/780 "2019-08-22T11:26:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jobbet](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/8c91f0/32.png) [@Jobbet](https://forum.visualcomponents.com/u/Jobbet)\
**Post date:** [August 22, 2019, 11:26am UTC](https://forum.visualcomponents.com/t/line-generation-tool-xml-csv-support/780/1 "2019-08-22T11:26:54Z")

</div>

Hi!

**Description**  
The line generation tool automatically creates a single SMT line with multiple line components. The amount and the types of the line components are selected in the add-on properties. The different types of line components are defined in a CSV file.

Before generating the line, the add-on provides a possibility to generate XML file from the selected line components. This XML can then be further modified, and thereafter used as an input for the line generation.

&nbsp;

 ![](https://forum.visualcomponents.com/uploads/default/original/2X/6/6618a8cd76d0ff7e01b8a7013db7989c68225cb5.jpeg)

**Purpose**  
The purpose of this add-on is to demonstrate one use case of an automatic component generation tool, as well as, to act as a template for a similar type of implementations.

**How to use**  
(1) Unzip the add-on file to the following folder path:  
_C:\Users#USERNAME#\Documents\Visual Components\4.1\My Commands_

(2) Open a new instance of VC or drag the _ **init**.py_ file to the current instance of VC

(3) Click the _Line Generation Tool_ icon in _My Group_ panel in _Home_ tab.

(4) Add the desired amount of line components and select their type

(5) Generate the line, or optionally write it to XML to be further modified before generating the line

[LineGenerationTool.zip](https://forum.visualcomponents.com/uploads/short-url/9I4wjU3eqDeE4PvimM2ZS0LKetJ.zip) (3.48 KB)

---

<div class="post-metadata">

**Author:** ![Este](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/este/32/760_2.png) [@Este](https://forum.visualcomponents.com/u/Este)\
**Post date:** [February 7, 2020, 11:20am UTC](https://forum.visualcomponents.com/t/line-generation-tool-xml-csv-support/780/2 "2020-02-07T11:20:52Z")

</div>

Great addon jobez!  
I played around with your addon and made this video showing different production lines generated from XML.

[/uploads/default/original/2X/1/117e2f35cef2d4fa220b3c9820ea019f648c6312.mp4](https://forum.visualcomponents.com/uploads/default/original/2X/1/117e2f35cef2d4fa220b3c9820ea019f648c6312.mp4)

---

<div class="post-metadata">

**Author:** ![fernet\_mies](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/fernet_mies/32/840_2.png) [@fernet\_mies](https://forum.visualcomponents.com/u/fernet_mies)\
**Post date:** [June 23, 2020, 11:07am UTC](https://forum.visualcomponents.com/t/line-generation-tool-xml-csv-support/780/3 "2020-06-23T11:07:02Z")

</div>

Wow nice job! You might be interested in this research " Automatic layout generation of robotic production cells in a 3D manufacturing simulation environment" [https://www.sciencedirect.com/science/article/pii/S2212827119308510?via%3Dihub](https://www.sciencedirect.com/science/article/pii/S2212827119308510?via%3Dihub)

---

<div class="post-metadata">

**Author:** ![Jobbet](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/8c91f0/32.png) [@Jobbet](https://forum.visualcomponents.com/u/Jobbet)\
**Post date:** [June 23, 2020, 11:46am UTC](https://forum.visualcomponents.com/t/line-generation-tool-xml-csv-support/780/4 "2020-06-23T11:46:31Z")

</div>

Thanks fernet\_mies, that looks interesting!

I linked this to our developer who had been working with the AutomationML.

Automatic layout generation of robotic production cells would be definitely awesome feature.
