AutoCAD Applications
Source code given below can be compiled with Microsoft Visual Studio Community 2017.
Precompiled dlls are compiled for AutoCAD 2019, (can also be loaded in 2020). Dlls are loaded in AutoCAD with NETLOAD command. Advance Steel plugins are precompiled with AS 2020; loaded with ASTORLOADASNETPLUGIN command. All new commands start with XEN_
(In case dll load fails check if load from remote sources is enabled in your .NET configuration)
Create structure in Advance Steel from a text file
October 2019
This Advance Steel plugin creates structure from an external text file.
Steel structure is defined in the external text file as in the following, where
we define steel cross section, end points of beams, lines, and assign cross sections to lines.
STEELSECTION
#
LABEL "B1";
TYPE HEA;
ID HEA340;
MATERIAL S355J2;
Y_OFFSET 0.0;
Z_OFFSET 0.0;
INSERTION_POINT TOP_CENTER;
#
POINTS
#
0.0 0.0 0.0;
3000.0 0.0 0.0;
#
LINES
#
0 1, "B0";
#
ADDTOLINES
#
SELECT_LINES 0;
SET_PROPERTY 0;
SET_THETA 45;
#
Following
documentation
we can make a list of mappings between simple steel profile names and Advance Steel tables. (This can be updated in the future.)
Steel profile | Advance Steel table |
---|---|
HEA |
"HEA DIN18800-1" |
HEB |
"HEB DIN18800-1" |
IPE |
"IPE DIN18800-1" |
UPE |
"UPE" |
L |
"Angle_eq DIN18800-1" |
L_UNEQUAL |
"Angle_uneq DIN18800-1" |
SHS |
"RHS_Sections_square_w nach DIN" |
RHS |
"RHS_Sections_rectang_w nach DIN" |
CHS |
"Pipe nach DIN" |
- Load AsCreateStructure.dll with ASTORLOADASNETPLUGIN command in Advance Steel 2020.
- Type XEN_CREATE_STRUCTURE at the command prompt.
- Select text file. Sample SteelStructure.txt is given in the source folder.
Export beam system lines
September 2019
This is Advance Steel plugin and it exports system lines of selected beams.
Precompiled dll for Advance Steel 2020: AsExportAxis.dll.zip Source: AsExportAxis.VS2017.zip- Load AsExportAxis.dll with ASTORLOADASNETPLUGIN command in Advance Steel 2020.
- Type XEN_EXPORTASLINES at the command prompt.
- Select beams which you want to export.
- After selection press enter and then select location to save exported lines.
Insert Layout
August 2019
This application inserts a layout from user selected dwg file to all dwg files in a user selected folder.
Precompiled dll for AutoCAD 2019, 2020: InsertLayout.dll.zip Source: InsertLayout.VS2017.zip- Load InsertLayout.dll with NETLOAD command in AutoCAD.
- Type XEN_INSERTLAYOUT at the command prompt.
- Select folder where you stored dwg files to which you want to insert layout.
- Select dwg file which contains layout which you want to insert.
- Select layout from the previously selected dwg file
- Application inserts layout to all dwg files, with the name of the file, and reports file names and number of processed files.
Insert Title Block
August 2019
This application inserts (or updates reference if block reference already exists in a layout) a block to each layout, to each dwg file in a user selected folder.
Precompiled dll for AutoCAD 2019, 2020: InsertTitle.dll.zip Source: InsertTitle.VS2017.zip- Load InsertTitle.dll with NETLOAD command in AutoCAD.
- Type XEN_INSERTTITLE at the command prompt.
- Select folder where you stored dwg files to which you want to insert block.
- Select dwg file which contains block definition which you want to insert.
- Select block from the previously selected dwg file
- In the open dialog edit attributes. Add numeric counters if required. Added counter is used
in attribute value using C# composite formatting.
(See: https://docs.microsoft.com/en-us/dotnet/standard/base-types/how-to-pad-a-number-with-leading-zeros)
- Click OK to finish. Application reports file names and number of processed layouts.