# Readme for dotNET Samples

This readme contains information about the .NET samples that are written using COM API in AutoCAD Mechanical.

### To Use the Samples

1. Start Microsoft Visual Studio and open the .vbproj file, you should be able to view the codes. Note that there will be some errors in Error List window.
2. To build the samples, add references to the following COM and .NET dll:

- Autodesk AutoCAD 2010 Type Library.
- Autodesk AutoCAD Mechanical 1.0 Type Library. (This will automatically add references to AutoCAD/ObjectDBX Common 18.0 Type Library and Autodesk GeAuto 2.0 Type Library)
- Autodesk SymBBAuto 3.0 Type Library.
- AcDbMgd.dll and AcMgd.dll. (You should be able to find these two DLL in the ObjectARX directory)

3. To run the sample, start AutoCAD Mechanical and run NETLOAD command to load the dll file of the sample.

### Descriptions of the Samples

- netDetail

- netEdge

- netNote

- netTaper

- netScaleArea

- netTitleBorder

- netRevisionList

- netSectionLine

### netDetail

This sample demonstrates how to create a detail symbol and detail symbol label. It allows user to set detail view and scale settings for the detail symbol.

To start the application, run CREATEDETAILSYM command.

### netEdge

This sample demonstrates how to create an edge symbol and attach it to an entity in the drawing. It allows user to set the requirements and options for the edge symbol.

To start the application, run CREATEEDGESYM command.

### netNote

This sample demonstrates how to create a note symbol. It allows user to set note text and other requirements for the note symbol. It also allow user to add and delete template, and set default template in the note symbol standard.

To start the application, run CREATENOTESYM command.

### netTaper

This sample demonstrates how to create a taper and slope symbol and attach it to an entity in the drawing. It allows user to set the requirements for the taper and slope symbol, and configure the list of available symbols in the taper and slope symbol standard.

To start the application, run CREATETAPERSYM command.

### netScaleArea

This sample demonstrates how to create a scale area for a closed curve in the drawing, and modify the scale area. It allows user to specify the scale factor and create or delete viewport in Layout1.

To start the application, run CREATESCAREA and MODIFYSCAREA commands.

### netTitleBorder

This sample demonstrates how to create and delete a title/border in the drawing. It allows users to set the options of the title/border, and modify the attributes for the title block and drawing border.

To start the application, run TitleBorder command.

### netRevisionList

This sample demonstrates how to create a revision line in the drawing. It allows users to modify and delete the revision line.

To start the application, run CREATEREVLIST, DELETEREVLIST and MODIFYREVLINE commands.

### netSectionLine

This sample demonstrates how to create a section line in the drawing. It allows users to set the section view symbol standard properties.

To start the application, run CREATESECTIONLINE and SECTIONLINESTD commands.