| ad_Utility -
50k zipped
Groups 52 ActiveDwg non-dialog based VBA macros and demand load statements in a single file. | |
| ad_ActiveDwg - 30k
Allows switching between active drawings by selecting from a dropdown list. | |
| ad_AcadDate - 23k
Demonstrates manipulation of internal date formats. | |
| ad_AcadPath - 15k
Demonstrates retrieval of path of AutoCAD executable. | |
| ad_AddDimStyle - 38k
Demonstrates adding a new dimension style and defining properties. | |
| ad_AddMenuItems - 22k
Demonstrates adding a new menu item, toolbar, and toolbar button. | |
| ad_AddWord - 24k
Demonstrates adding a leading and trailing word to existing text. | |
| ad_AttributeUpdate - 57k
Demonstrates updating block attributes and dynamic button and form captions. | |
| ad_CircleToPoint - 16k
Collects and changes specified circles to points using a filtered selection set. | |
| ad_CloseAllDwgs - 28k
Closes current drawings with option to save. | |
| ad_Cloud - 15k
Draws and configures polyline revision clouds. Includes two related routines. | |
| ad_ColorToLayer - 22k
Places entities on layers based upon their color and changes color to 'ByLayer'. | |
| ad_ConvertText - 29k
Demonstrates the conversion of an MText entity to a Text Entity, or a Text entity to an MText entity. | |
| ad_CopyDim - 14k
Copies the 'Measurement' property of the selected dimension to the Windows clipboard. | |
| ad_CrosshairToggle - 14k
Toggles the display crosshair between 5% and 100%. | |
| ad_DeleteBlankText - 13k
Deletes all modelspace blank text and mtext entities. | |
| ad_DeleteLayouts - 12k
Deletes all paperspace layouts. | |
| ad_DimCG - 87k
Locates and dimensions the CG of a selected solid. | |
| ad_DimVisibility - 15k
Demonstrates controlling visibility of specific objects. | |
| ad_DwgDate - 27k
Inserts the current system date in a block. Requires ad_DwgDate.dwg. | |
| ad_DwgList - 19k
Writes a list of the current active drawings to a text file. | |
| ad_DwgVer - 22k
Determines the version of the current drawing. | |
| ad_Dxf2Dwg - 135k
Converts a folder of 'DXF' files to 'DWG' using 'SaveAs'. | |
| ad_EntityByLayer - 23k
Demonstrates updating all drawing entity color and linetypes to 'ByLayer'. | |
| ad_FindReplace - 126k
Demonstrates multiple-field find/replace of Text and MText. | |
| ad_FindZoom -
21k
Locates and zooms to specified drawing objects. | |
| ad_FixBlocks - 44k
Demonstrates selective updates of block attributes. | |
| ad_FixPlotStyles - 32k
Updates drawing plot styles. | |
| ad_FormatNumbers - 23k
Demonstrates ways to format numbers. | |
| ad_FreezeAll - 22k
Freezes all layers except current. | |
| ad_FreezePick - 23k
Freezes the layer of a selected entity. | |
| ad_GetBlocks - 14k
Collects all blocks in a drawing and creates and displays a list of the blocks and their attributes. | |
| ad_GetObjectName - 16k
Displays the AutoCAD ObjectName for the selected entity. | |
| ad_GetPlotInfo - 14k
Demonstrates the retrieval of plot device and media information for the active layout. | |
| ad_GraphScrColor - 19k
Toggles the graphics window background color between black and white. | |
| ad_LayerList - 32k
Populates a combobox with the drawing layers. | |
| ad_LayerRename - 14k
Demonstrates the manipulation of drawing layer names. | |
| ad_LayerSS - 13k
Demonstrates the creation of a selection set of all entities on a given layer. | |
| ad_LayoutIsolate - 14k
Demonstrates a way to isolate entities according to the layout on which they reside. | |
| ad_LayoutLimits - 12k
Displays a message box with the limits for each drawing layout. | |
| ad_LineList - 28k
Populates a combobox with the drawing linetypes. | |
| ad_ListLayouts - 23k
Lists the layouts defined in the current drawing. | |
| ad_MatchLayer - 22k
Makes the selected entity's layer current. | |
| ad_MatchProps - 26k
Mimics the basic functionality of the '_MatchProps' command. | |
| ad_OutlookJournal - 32k
Demonstrates the creation of simple journal entries in MS Outlook to record drawing open/close. | |
| ad_PageLayout - 15k
Selects a particular layout as the active layout. | |
| ad_PerpOn - 14k
Rotates the crosshairs to match the angle of the selected line. Includes a routine to return crosshairs to 0 degrees. | |
| ad_PlotLayouts - 22k
Plots all layouts in the current drawing to a plot device. Uses their default page setups. | |
| ad_PlotStyles - 21k
Retrieves and displays the plot policy and plot styles for the active layout. | |
| ad_PlotToFile - 22k
Plots all layouts in the current drawing to file in the drawing folder. Uses their default page setups. | |
| ad_PlotToFolder - 23k
Plots all layouts in the current drawing to file in a specific folder. Uses their default page setups. | |
| ad_Profiles - 18k
Saves and loads user profiles. | |
| ad_SaveToR2000 - 120k
Updates older versioned drawing files to include preview bitmap. | |
| ad_ScreenMenu - 16k
Toggles the visibility of the screen menu. | |
| ad_ssBox - 24k
Gets and displays the bounding box of a selection set. | |
| ad_SwapProfiles - 13k
Toggles user profiles. | |
| ad_TextStyleList - 33k
Populates a combobox with the drawing textstyles. | |
| ad_Table - 129k
Inserts an AutoCAD Table and populates it with block attribute information. For AutoCAD 2007+ (not tested on 2006) | |
| ad_TextOnLayer - 13k
Creates a selection set of all text on a given layer. | |
| ad_ThawAll - 22k
Thaws all layers. | |
| ad_Timer - 52k
Demonstrates the use of a timer and also the relative strengths of entity iteration vs selection sets. | |
| ad_TotalLines - 38k
Demonstrates the retrieval of the cumulative total of line lengths on a particular layer. | |
| ad_ToUpper - 20k
Changes all drawing MText and text to uppercase. | |
| UnloadVBA - 20k
Demonstrates a self-unloading macro. | |
| ad_VerifyDims - 87k
Highlights drawing dimensions that contain text overrides. |
| DISCLAIMER NOTICE: All code is provided 'as-is' and has been verified to function properly FOR OUR PURPOSES. It is your responsibility to verify that the code will function properly for your purpose PRIOR TO ITS USE. ActiveDwg and its affiliated sites make no warranty, express or implied, as to the viability of particular code for any particular purpose. By downloading from this site, you are indicating your agreement with these terms. |