vba

AutoCAD VBA - simple code to draw line with colour information

Submitted by timed on Sat, 11/24/2018 - 10:20

Simple Code to Draw lines in AutoCAD VBA

'call statement

Call drawline(x1, y1, x2, y2, 1)

replace x1, y1, x2, y2 with your X and Y cordinates

replace 1 with colour of choice

available colours

1 : White

2 : Cyan

3 : Green

4 : Red

5 : Yellow

6 : Blue

7 : Magenta

 

 

FULL CODE

Tags

AutoCAD Drawing Automation : Part 1 - Create custom toolbar and button

Submitted by techrev on Mon, 09/25/2017 - 11:49

AUTOCAD DRAWING AUTOMATION FREE TUTORIALS

In this tutorial, we will see how to create your own command button and insert it to the custom toolbar (name it under your organization/institution). when you click on those buttons, it can perform certain pre-written actions like draw objects, add dimensions, change properties, change drawing scale, printing, export to other data formats like excel/access database. there will be more tutorials on each subject soon..

Now, let us begin with the basic toolbar/button creation

 

Tags

Extract data from Excel and use it in AutoCAD

Submitted by techrev on Wed, 09/13/2017 - 11:54

You can extract the data from an excel file (without opening it) and use it inside an AutoCAD file for drawing objects;

This is just an example on How to use the data from Excel Cells inside the CAD drawing to Automate the Autocad drawing process.

autocad vba automation

Don't forget to add Microsoft Excel Object Libraries (Tools->References) [AutoCAD VBA Editor]

Record a Solidworks macro - Solidworks Automation

Submitted by techrev on Thu, 03/09/2017 - 09:59

Record a Solidworks macro

In this example we will discuss about “How to Record a Macro in Solidworks”

Open the Solidworks, Go to Tools -> Macro -> Record

solidworks mac

Then start your project, in this example we will be making a cylinder (Draw circle and extrude it to Cylinder)

Create a New Part Document