Single Lines or One Lines (1Line) typically are used to illustrate power distribution from one or more Motor Control Cabinets (MCC).
This article describes how DIAGRAMS drafts 1Line drawings, from SaaS Electrical. SOCKETWorx as a Service (SaaS) shifts electrical design and engineering to the cloud and DIAGRAMS communicates with it to produce AutoCAD® using any symbol library.
The common drawing production workflow:
- Enter electrical loads into SaaS Electrical
- Assigning DIAGRAMS AutoScripts and drawing positions
- Batch DIAGRAMS drawings from SaaS Electrical
This article is a step-by-step guide on how to enter data and ultimately use DIAGRAMS to produce drawings using the DIAGRAMS AutoScript technology.
The demonstration video offers a live view of the process from start to finish.
Contact ECE to set up SaaS Electrical pilots project against your use cases.
Demonstration Video
STEP 1 - Enter Electrical Loads
SaaS Electrical includes a set of standard Assignment and AutoScript data views for the Electrical System Design table.
Each view contains a set of columns that satisfy respective data requirements. Navigate to AutoScript - 1Line Drawings to add rows that will represent components of an electrical system.
Add Rows
There are numerous Header Controls that support data entry, reporting, document attachment, and document associations. The first task is to add new rows to projects. Up to 1000 rows can be added, but generally users are adding rows in quantities relative to the scope of work. In this example we'll add 20 1Line power consumers.
Launch Worksheet Mode.
Entering data is accomplished by launching worksheet mode.
![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/24167367720/original/-WP1ooo1YiDvb_Eo2rbeoY9cL4Pjnc0awg.png?1719057469)
Enter the ID_Type and ID_TagNumber because they are concatenated to form the ID_Tag. Columns with colorized backgrounds are locked for various reasons like this. In this case, the data must be saved then reloaded so the ID_Tag will update.
Next assign each motor to a 1Line drawing by populating DWG_1Line. Enter the DWG_X and DWG_Y values for each. In this example the X values can start at 5 and end at 30 and increment by 3. The Y values can be 20.5 or 11 because that is where the common bus bars exist within one of the 1Line drawing border templates.
Other columns service reporting and drawing annotation requirements, so be sure to complete them, but populating these columns is enough data to demonstrate DIAGRAMS and SaaS Electrical drawing automation using AutoScripts.
ProTip: Save Changes!
STEP 2 - Assigning DIAGRAMS AutoScripts and drawing positions
DIAGRAMS contains numerous 1Line Symbols that are configured for manual and automated drafting.
Upload them or any other collection of DIAGRAMS Routes, Symbols and Groups as SaaS Electrical AutoScripts. These symbols have already been uploaded to saas.socketworx.com where trial access can be granted.
Enable AutoScripting
AutoScripts are assigned to rows within SaaS Electrical Data Views, when their Automated Script option is active.
Set AutoScript Parameters one-by-one
Once active, two row control buttons appear.
(1) AutoScript Assignment.
One click launches the AutoScript Assignment popup window.
Select one and close.
(2) AutoScipt datasheet
One click launches the AutoScript Datasheet popup window.
Enter the AutoScript insertion point X and Y drawing file coordinates.
Review all visible AutoScript drawing annotation and attribute sourced from the data row.
Optionally, override data coming from the source row, and close.
Row controls can be used to make changes one-by-one, and the header controls enable bulk updates.
Set AutoScript Parameters in Bulk
Prior to updating in bulk, it is helpful to filter using the global or column options. If the Data View is limited to a target group, the column 1 header 'check-all' can be used. Othewise, multi-select rows by using the check boxes.
Begin bulk updates by choosing an option. Generally, it is recommended to work from top to bottom workflow.
Bulk Assign:
Drawing Script Templates. The DWG 1Line Column lists all the drawing files to produce. This option launches the Assign Drawing Template popup window with a distinct list of drawings with a row control button to pick one.
Drawing Titleblock Information. New feature preview at the time of this article and only support electrical ladder diagram rung numbering.
AutoScripts. Launches the assignment popup window. It offers AutoScripts in groups. Use the global filer to search by name or scroll through the groups. Once selected, the associated image displays to aid in the selection process.
Clear AutoScripts. Remove the association but preserves the drawing XY coordinates.
Drawing Positions. Launches the bulk edit popup window. The first four columns are presented along with Columns G and H. These are the only editable columns where X and Y Offsets from AutoCAD World Coordinate System (0,0). This provides the instructions for DIAGRAMS to insert at these coordinates them automatically.
Once rows have filenames and AutoScripts assigned, DIAGRAMS will produce drawings from the data
STEP 3 - Batch DIAGRAMS drawings from SaaS Electrical
Create New Projects
DIAGRAMS is designed to enable drafting from its default symbol library within any AutoCAD drawing file.
However, the AutoScript processor requires a project be set that it is set to use the default Configuration and SymbolLibrary XML files. AutoScripts can be run from projects with or without databases. Consider that a database is required to join off-page connectors, and bulk update from the Project Manager.
Reference these legacy self-help content on creating new projects:
https://support.ecedesign.com/en/support/solutions/articles/24000091888-creating-projects
After creating new projects, open them by using the DIAGRAMS Control Center palette from AutoCAD®
Next launch the SWx AutoScript panels.
Select a source SaaS Electrical Connection, a Script View, and one or more drawings to create.
Double clicking on Drawings will launch the create processor. If that drawing is open, or already exists within the project, an option dialog will display with options to clear and recreate it.