You are on page 1of 11

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/308937742
Basic CAD
Presentation · October 2016
DOI: 10.13140/RG.2.2.33629.82409
CITATIONS READS
0 921
1 author:
Jijeesh Puthiyadath
caa
2 PUBLICATIONS   0 CITATIONS   
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Scientific Data Visualization Tools View project
Create a Basic CAD software View project
All content following this page was uploaded by Jijeesh Puthiyadath on 08 October 2016.
The user has requested enhancement of the downloaded file.
Basic- CAD V1

Create a CAD Program


With Visual Studio Express
and MS Access database

jijeesh.puthiyadath@gmail.com
Basic- CAD – V1

jijeesh.puthiyadath@gmail.com
Basic- CAD – V1

Tools
• Install VB 2010 Express
• Install OPENTK and Configure OpenGL
• Install MS ACCESS

jijeesh.puthiyadath@gmail.com
Basic- CAD – V1

Concept
The Idea is to get the Coordinates of mouse click as
X and Y then save to the database to regenerate
and save the drawing.
All X and Y s of line drawn are saved in table “Line”
Center points (X&Y) & Radius of circles are saved in
table “Circle”
and so on…

jijeesh.puthiyadath@gmail.com
Basic- CAD – V1
Imported Libraries
• Imports OpenTK
• Imports OpenTK.Graphics
• Imports OpenTK.Graphics.OpenGL
• Imports OpenTK.Input
• Imports OpenTK.Input.Mouse
• Imports OpenTK.Input.Keyboard
• Imports System.Math
• Imports System.Data.OleDb
• Imports System.IO
jijeesh.puthiyadath@gmail.com
Basic- CAD – V1

A database connection is made when you open the program - as shown below

provider = "provider=Microsoft.ACE.OLEDB.12.0;Data Source="


'dataFile = "C:\Basic-CAD-data.accdb"
dataFile = "..\\Basic-CAD-data.accdb"
connString = provider & dataFile
conline.ConnectionString = connString
' con.ConnectionString = "provider=Microsoft.ACE.OLEDB.12.0;Data
Source=..\\Basic-CAD-data.accdb;"
iter = 0
connStringmaster = provider & dataFile
conmaster.ConnectionString = connStringmaster
connStringdraw = provider & dataFile
conndraw.ConnectionString = connStringdraw
conline.Open()
jijeesh.puthiyadath@gmail.com
Basic- CAD – V1

Blank database – readyjijeesh.puthiyadath@gmail.com


to store new X and Y values
Basic- CAD – V1

jijeesh.puthiyadath@gmail.com
Basic- CAD – V1

Drawing window - Line jijeesh.puthiyadath@gmail.com


View publication stats

Basic- CAD – V1

Database updated automatically with clicked X and Y points


jijeesh.puthiyadath@gmail.com

You might also like