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:
  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

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.

netDatumTarget

This sample demonstrates how to create a datum target symbol in the drawing. It pops up a dialog and allows user to select the target type.

To start the application, run CREATEDATUMTGT command.

 

Return to Top