Readme for Migration To Structure VBA Samples

This readme contains information about the VBA samples which show migration of standard parts and blocks to Mechanical Structure in AutoCAD Mechanical.

To Use the Samples

The samples are AutoCAD VBA project (DVB) files. See the "Description of the Samples" section below for any specific information about the samples.

To use a VBA sample or view its code

  1. Start AutoCAD Mechanical, drag and drop the VBA sample into AutoCAD Mechanical.
  2. On the AutoCAD Mechanical Assist menu, click Macro > Macros.
  3. In the Macros dialog box, in the Macro list, select a macro to use or view.
  4. Do one of the following:

     

    Descriptions of the Samples

    Return to Top

    MigrateFolderPowerObj.dvb

    This sample get power objects (Shaft Calculation, Finite element Analysis (FEA), Moment of Inertia, Deflection Line) that need to be migrated, and migrates them to folders in Mechanical Structure.

    Before using this sample, open the folderObjs_ACADM6.dwg sample drawing file.

    To use the sample, run the macro named MigrateFolderPowerObj.

    Return to Top

    MigrateComplexStdPart.dvb

    This sample gets the complex standard part (screw connection and part feature) that need to be migrated, and migrates them to standard part components and component views in Mechanical Structure.

    Before using this sample, open the ScrewConn_ACADM6.dwg sample drawing file.

    To use the sample, run the macro named MigrateComplexStdPart.

    Return to Top

    MigrateShaft.dvb

    This sample gets the shafts that need to be migrated, and migrates them to shaft components and component views in Mechanical Structure.

    Before using this sample, open the folderObjs_ACADM6.dwg sample drawing file.

    To use the sample, run the macro named MigrateShaft.

    Return to Top

    BlocksToStructure.dvb

    This sample migrates blocks to Mechanical Structure. It uses a specific naming scheme derived from the block names in the sample drawing to determine the components and component views.

    Before using this sample, open the asembly_with_blocks.dwg sample drawing file.

    To use the sample, run the macro named BlocksToStructure. 

    Return to Top