OS. Autodesk AutoCAD Macro
OS. Autodesk AutoCAD Macro
OS. Autodesk AutoCAD Macro
OpenSTAAD can also be used to integrate pre- or post-processing data with AutoCAD 2000 or higher.AutoCAD 2000 supports VBA macros with its own exposed set of func ons. This example automa cally calculates the sec on forces at any distance along a member from a
STAAD file and plots the results in a table as a separate layer. A dialog box was created in AutoCAD using AutoCAD VBA forms. The input box will prompt for the STAAD file name, the member number, the load case and the point along the member (expressed as a frac on
of the length) where the sec on forces are to be determined. The macro returns the sec on forces (by using OpenSTAAD to read STAAD's database) and plots them in a pre-defined table in the DXF file (STDandAcad.dxf).
CAUTION: It is always recommended to do a virus scan on any macro before opening it - including this one!
select the RUN VBA Macro tool on the Manage tab (AutoCAD 2009 and higher).
Note: Microso Visual Basic for Applica ons Module is not installed with recent versions of AutoCAD but can be downloaded from the Autodesk website. Refer to the help included with AutoCAD for more informa on.
or
select Tools > Macro > Macros (previous versions of AutoCAD or when AutoCAD 2009 is in AutoCAD Classic mode).
or
press ALT+F8.
The STAAD.Pro Sec on Forces dialog opens. A warning also opens informing you that the STAAD File name must be specified.
5. Enter a valid filename, including complete file path, for the current input file open in STAAD.Pro. The Member Number and Load Case drop-down lists are populated with data from the selected model.
6. Select a Member Number and Load Case and specify a Frac on Along Beam.