Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

CAD Program (Autocad Lite)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2009, 10:30 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default CAD Program (Autocad Lite)

Hi Everybody

I am attaching a small CAD program, which should be very similar to the Autocad Lite program. Things that the program can do:

1. Open and Save a drawing. At the moment the drawings are in a "CEASER" format, but I should have the option of opening and saving drawings in a "DXF" format ready by this weekend.
2. Under the editing you can "Undo", "Redo", "Trim Lines" and "Extend Lines"
3. Under the lines, one can draw "Points", "Freehand", "Lines", "Polygons", "Lock Vertical", "Lock Horizontal", "Draw Parallel" and "Draw Boxes"
4. There are a couple of circle options. With the help of Klaus
5. There are lock options. Lock to "End Line", "Middle Line", "Lock to Close Point", "Lock Perpendicular", "Center of Circle".
6. Drawing entities can be placed on different layers.

I need help with the following:

1. Scale the drawing to world coordinates
2. Be able to scale, move, copy and rotate a drawing.
3. All the zoom options...i.e. zoom in, zoom out, reset, etc
4. Be able to plot dimensions to the drawing objects.

What I am busying with:

1. DXF import and export
2. Enter coordinates to draw lines, circles, etc. instead of drawing them with the stylus on the screen. To draw a line one would enter the following : 120,100,20,200,300,21 (X,Y,Z,X1,Y1,Z1)
3. A manual!!!!

Thanks
Michael

Hi

I am attaching an update (with Klaus's help) on my CAD program.

Thanks
Michael

Hi

Another update on my attempt at a mobile CAD program

Thanks
Michael
Attached Files
File Type: zip Cad.zip (272.0 KB, 173 views)

Last edited by ceaser : 10-09-2009 at 08:20 PM. Reason: Fixed Some Bugs On The Program
Reply With Quote
  #2 (permalink)  
Old 06-27-2009, 04:26 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Looks good!
As a beginner, I found myself asking myself "what should I do now?". Maybe a quick example (something simple under help menu, like "my first job" or so) will be good.

As I opened a new site using menu command file - new site, named the site and clicked OK (on the desktop), an error "Object reference not set to an instance of an object" occured.

Waiting to check further...
Reply With Quote
  #3 (permalink)  
Old 06-27-2009, 05:29 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Hi Ariel

Forget about the "New Site". This is used when the total program is available. Go straight to the "CAD" icon. It's the one that has a drawing board with a ruler and pen across.

Regards
Michael
Reply With Quote
  #4 (permalink)  
Old 06-27-2009, 05:37 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Hi

I forgot to disable certain functions when the rest of the survey modules are not available.

I am posting a new zip file.

Sorry

Regards
Michael
Attached Files
File Type: zip Cad.zip (241.8 KB, 57 views)
Reply With Quote
  #5 (permalink)  
Old 06-27-2009, 06:11 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Hi,
This time I got better. I started as you described and the editing form looks good.
I did encounter a failure when I created a new job and then pressed the Field icon in the main menu (which looks great by the way). "Object reference not set to an instance of an object", line 1445


Anyhow, there are few things I did want to suggest:
1. Tooltips for the menus in editing mode. As there are no descriptions (and this is good in UI manner) there should be somthing saying what a menu option does.
2. Add layer - you might want to exit automatically after adding one layer?
3. Does the layer feature work?
4. Does the erase layer feature work? I did not get it to work.

Could you give me a short description of the "normal" procedure of working with the program including purpose, scenario, work flow and results? I'm afraid I'm still trying to figure out what are the entire abilities and if I get you right it is an excellent idea.

Ariel
Reply With Quote
  #6 (permalink)  
Old 06-27-2009, 06:47 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Hi Eziel

Forget about opening a "Job". Like I said before, go straight to "CAD" . The other modules are only available in the total surveying program.

Something I forget to mention, the "Erase" layers does not work yet, as I am not sure how I should handle it. When erasing a layer then all drawing entities on that layer should be deleted. This is a bit dangerous and other options should be looked at.

Eziel, go to the "CAD" module and start drawing lines and then save them. I will have the chapter that explains everything ready soon.

Regards
Michael
Reply With Quote
  #7 (permalink)  
Old 06-27-2009, 09:56 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hello Michael,

I had also a look at your program and have following comments:
- it would be interesting to see on the toolbox buttons what function or option is active, not only as text on the bottom of the screen.
- horizontal / vertical lines, the end point red cross should be the line's end point but it is the cursor's position.
- parallel lines, doesn't work with vertical lines.
- it seems that the last snap function has a strange behaviour, perhaps I am missing something
- how to display only the objects of a given layer ?
- would it be possible to select an object and modify the point coordinates ?
- what are the red crosses for ? when loading a drawing they are not displayed.
- in your code you have a lot of buttons named Button100, Button101, Button102 ... it would be easyer with self explaining names like btnFileFunc, btnEditFunc, btnZoomFunc ...

For the scaling you must introduce scaling variables to convert the pixels into world coordinates (including the zoom factor).

For the zoom it depends if you want to draw
- onto a bitmap and zoom and scroll this one, but eventually with memory problems
- directly onto the form, but even for scrolling you need to redraw the whole drawing.

Best regards.
__________________
Klaus
Switzerland

Last edited by klaus : 06-29-2009 at 07:10 PM.
Reply With Quote
  #8 (permalink)  
Old 06-28-2009, 08:42 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Hi Klaus

I will add the suggestions that you mentioned and also have a look at vertical parallel lines.

To show only entities on certain layers, you need to click on the layer icon, which will then show you all the layers in your drawing. By clicking in the small box next to the layer name, a "X" will appear, which will hide the layer from your drawing. This was one of the routines that you send me some time ago.

The last "Snap" option is to snap perpendicular to an existing line. A little square box will appear once you are close to the perpendicular point.

Regards
Michael
Reply With Quote
  #9 (permalink)  
Old 06-28-2009, 12:02 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Ok, I fixed up the parallel lines to vertical lines.

Thanks
Michael
Attached Files
File Type: zip Cad.zip (241.7 KB, 68 views)
Reply With Quote
  #10 (permalink)  
Old 06-28-2009, 02:03 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,

I tested the program a bit more and found some other points:
- arc functions, after having drawn a first arc the next one picks up the last point from the previous arc ?
- 4th snap function: this function looks for a point on a nearby line, it shows also points on the virtual line outsides the end points ?

For the layers I got it. I missed the first column because when you click onto a layer name the first column is hidden, I suggest you to shorten the width of the layer column to fit within the table width.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Program not run under CF3.5 ? Paulsche Questions (Windows Mobile) 7 10-15-2008 04:23 PM
SQL Lite Lock 2220 Questions (Windows Mobile) 4 09-03-2008 10:09 AM
SQL-lite select using AND operator mozaharul Questions (Windows Mobile) 5 06-04-2008 08:27 AM
sql lite jchal Questions (Windows Mobile) 1 11-16-2007 12:41 PM
Basic4ppc Lite ? Erel Chit Chat 14 10-18-2007 09:58 PM


All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0