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]

ARDUINO and VB.NET - Read TEXT File from WEB SERVER

Submitted by CAAadmin on Sun, 07/16/2017 - 15:48

This project details and full source codes are available at www.arduinovb.net  (maintained at separate server for php trial and error purpose)

arduino vb.net read data from server

we can read the data file stored in Server (with public access permission) and display in the RichTextBox

The Updated Items in code

Usual import libraries

Imports System.IO

Imports System.Text

Tags

Draw Cylinder (with GRID lines) in OpenGL

Submitted by CAAadmin on Sat, 06/17/2017 - 09:40

Press space bar to ON/OFF grid appearance

 

Sample code - --

 

#include <iostream>
#include<conio.h>
#include <GL/freeglut.h>
//available at www.computeraidedautomation.com
using namespace std;

GLuint jijmodel;
float jijmodelrot;
//int x,y,z;

bool bUsePredefinedCamera = true;
bool grid = true;
bool bFullsreen = false;
int nWindowID;
bool init = false;

Tags

Create a cube in Solidworks VBA - Solidworks Automation

Submitted by techrev on Mon, 05/01/2017 - 11:10

The code for creating a simple cube in Solidworks with VBA (macros)

Edit X and Y and Z values for customization

Private Sub CommandButton1_Click()

Dim swApp As Object

Dim Part As Object

Dim boolstatus As Boolean

Dim longstatus As Long, longwarnings As Long

Set swApp = Application.SldWorks

Set Part = swApp.ActiveDoc

Dim myModelView As Object

Set myModelView = Part.ActiveView

myModelView.FrameState = swWindowState_e.swWindowMaximized

Tags

Arduino Stepper Motor Pin Config and Code

Submitted by techrev on Sun, 04/30/2017 - 08:13

Arduino and Stepper motor pin configuration

arduino stepper pin config

I/O Connect to Controller : to pins 8, 10, 9, 11

Use below program  for your stepper motor driver trials

#include <Stepper.h>
#define STEPS 32   
#define STEPSREV 32 * 64  //2048  

Stepper stepper1(STEPS, 8, 10, 9, 11);

int  Steps2Take;

void setup()  
{

}

Tags

Read the value of a cell from another excel file without opening it

Submitted by techrev on Sat, 04/29/2017 - 07:58

You have an excel file at location D:\ (example D:\fromdata.xlsx ) and you want to read its cell value E2 and put it inside the file located at C:\ (example C:\todata.xlsx )

Open your file at C:\todata.xlsx go to Developer Tab and then insert a button

 

 

 

 

 

 

 

 

 

excel automation