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
Descriptions of the Samples
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.
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.
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.
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.