Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am c# programmer,i want to develop a CAD like tool(2D or 3D) for drawing(Lines,circle,polygon,cubes).i don't know how to start,can any one help me so that ill start my project,deadline is may.any reference or links so that ill start as soon as possible plz..
features:
1)user will draw rooms of a house for example using the GUI provided by the tool which we are developing.
2)event handling for data collection (optional).
Posted

You should start looking at the Graphics class to begin with. You will also need to understand how various Mouse events work.
 
Share this answer
 
Comments
Madhurijkd 21-Feb-12 10:05am    
Tell me how to draw basic drawings which are drawn in paint like line,polygon interactively?To be specific how to develop paint in basic for whole big CAD tool?
dan!sh 21-Feb-12 23:19pm    
Take a look here: http://www.codeproject.com/Answers/143829/Drawing-a-Line-on-a-Form.aspx#answer3
Mahanteshambi 4-Apr-12 6:00am    
Can you tell me the way of selecting those lines or any polygon that we draw and resize them ,because i am doing CAD app where altering the existing dimensions is important. I will be using an existing drawing plan and need to make alterations to that plan.
dan!sh 4-Apr-12 6:45am    
It's all in the MouseEvents. You need to keep track of all the individual objects on the screen and then see if the click was done on any particular object. If yes, then update it.
Madhurijkd 4-Apr-12 12:29pm    
I will draw lines by using drawing namespace on the form,but after drawing how will i select a particular line?i want to use controls just like how it works in MS word or AUTOCAD,how to drag one end of line by selecting?how to move line from one location to other ?plz kindly give some snippet available if any.
If you want to develop the application in WindowsForms then
Practical C# Charts and Graphics book
and if you want to develop the application in WPF then
Practical WPF Charts and Graphics book
will be helpful in developing the application.

Details about these can be seen at
http://www.drxudotnet.com/[^]

You may find the following blog
http://drxudotnet.com/jack_blog/[^]
also useful, as Dr. Xu published several books on graphics.

If your problem is solved, you may accept and vote the solution otherwise please post your queries

PES
 
Share this answer
 
If you want to go for a 3D view, have a look at SharpGL: A C# OpenGL Class Library[^].
 
Share this answer
 
Comments
Mahanteshambi 3-Apr-12 4:09am    
Do you have any idea of creating output file of format .DWG or .DXF, so that next time i can open up the same file and start editing or using it in my application with c# and sharpGl??

As same way we do in AutoCad where objects in file like lines or circles can be selected and edited
I want my c# application to be worked as CAD tool

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900