CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > OpenSource CNC Design Center > Coding


Coding Post your Coding for opensource projects here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-18-2005, 04:40 PM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road
CAMBAM - 10Bulls crazy CAD/CAM software project

Hi there!

I've been having a go at knocking together an application for CAD/CAM generation.

It's still in the very early BETA stages at the moment, but so far it can

. Read/Write DXF files (still lots to do, but seems to cope with most 2D
files that I've thrown at it).
. View Gcode files
. 3D-ish viewing of drawing/gcode files.
. Scriptable via javascript and Visual Basic
. TTF text glyph extraction/engraving
. Bitmap heightmaps
. Very rudimentary gcode generation

It is a .NET windows application which requires at least framework
version 1.1.

The latest version and some pitiful but hopefully improving documentation can
be found at...
http://www.brusselsprout.org/CAMBAM

If you care to have a look at it and pass back any comments I would
be immeasurably grateful. It's still early days, so now would be
a good time for any feature/change requests as the design is
still rather fluid.

Once again, it is very much work in progress so expect it to be rough
around the edges

The main task ahead of me is to concentrate more on the gcode
generation side of it as I'm starting to use now for some
current projects.

I'll probably open-source it eventually, but the code is a bit
too ugly to be seen in public at the moment

Many thanks for your time

Thank you very much for the early beta testers who have had a sneaky
peaky at it.

Regards

Andy
Attached Images
File Type: jpg engraving-1.jpg‎ (209.5 KB, 698 views)
File Type: png pic9.PNG‎ (169.9 KB, 905 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 11-18-2005, 05:15 PM
xairflyer's Avatar  
Join Date: Nov 2003
Location: Ireland
Posts: 287
xairflyer is on a distinguished road

Andy

I seem to have problems getting the program to run ??

I know it is something I am not doing, I am using XP SP2
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 11-18-2005, 06:20 PM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by xairflyer
Andy

I seem to have problems getting the program to run ??

I know it is something I am not doing, I am using XP SP2
OK, the first thing I'd check is that you have framework V1.1 installed.
You can go to Control Panel->Add or Remove Programs and look down the
list of installed programs for 'Microsoft .NET Framework 1.1'.
If you can't see that, you can download the latest framework version here:
http://www.microsoft.com/downloads/d...displaylang=en

It may also be worthwile looking at: http://update.microsoft.com/ to make sure you have the latest hotfixes etc installed.

Do you get any meaningful error messages?

Sorry it hasn't gone so smooth for you. I should really get around to creating an installer program that checks the target environment etc.

Fingers crossed!

Andy
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 11-18-2005, 07:05 PM
 
Join Date: May 2003
Location: USA
Posts: 550
fyffe555 is on a distinguished road

Hmm.. I get 'The remote server returned and error: (407) Proxy Authentication required.'

Hit ok and then the app opens.. Does the app try a phone home to check for new version?

Win2k 5.00.2195 SP5 all latest service. Client in a w2k domain behind IIS.

Once it's open it loks interesting - need to spend some time on it.. Thanks for the effort and making the beta available.

Andrew
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 11-18-2005, 07:22 PM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by fyffe555
Hmm.. I get 'The remote server returned and error: (407) Proxy Authentication required.'

Hit ok and then the app opens.. Does the app try a phone home to check for new version?
Yes, you can turn the version checker off in Tools->Options menu item; set CheckVersionAtStart to false. Other than a tiny text file containing the latest version information, no other information is transferred.

In the next release I'll make the version checker run in a new thread and just report a message in the log view if it fails.

Thanks a lot for giving it a go! Sorry it's so pretty bleeding edge at the moment. Good to see it works on gool ole Win2k!

Have fun and enjoy!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 11-19-2005, 12:14 AM
spalm's Avatar
Gold Member
 
Join Date: Feb 2005
Location: USA
Posts: 578
spalm is on a distinguished road

Can it generate a spirograph?

It loads up just fine for me. Very impressive. Now what to do with it? CAM? I loaded the attached dxf file that I just generated from Alibre as a test. (Seems like this is more for an art generator, but heh) The text did not size and position correctly (See the jpg). I selected the 5 circles and clicked Geometry to Gcode from the Tools menu. If you let everything default and click Write File, you get a nasty error because the output filename was not entered. OK. I entered a filename and tried again. All OK. But the result file when viewed in a Gcode Viewer has nice rapid positions, but the circles are really large. Am I in an mm to inch zone? I’ll study the Gcode some more.

I like it. All I need is another distraction.
Thanks,
Steve
Attached Images
File Type: jpg MotorMount.jpg‎ (17.3 KB, 397 views)
Attached Files
File Type: dxf MotorMount.dxf‎ (36.9 KB, 116 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 11-19-2005, 08:06 AM
santiniuk's Avatar  
Join Date: Nov 2004
Location: U.K - England
Posts: 389
santiniuk is on a distinguished road

Great to see you have 'unleashed' this Andy.

As one of the 'beta' testers, (Sorry not too good at the feedback), but I have seen how fast you have coded this program and your obviously highly tallented at coding.

I really hope to see this thread grow with feedback and feature suggestions. I know this has the foundation for a superb program that could be developed and directed by zone members.

One of the 'feature's that would be useful is some form of wizard that guides through the generation of gcode for PCB isolation. I know your an expert at this now

Great work, thanks for sharing...
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 11-19-2005, 08:07 AM
santiniuk's Avatar  
Join Date: Nov 2004
Location: U.K - England
Posts: 389
santiniuk is on a distinguished road

Forgot to mention, how is my 'one handed' rotation code coming along
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 11-19-2005, 10:47 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by spalm
Can it generate a spirograph?
No, but that is exactly the sort of thing I think the scripting side of it would be good for! If anyone cooks up any cool scripts like this, I'd love to see them!
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 11-19-2005, 11:13 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by spalm
...The text did not size and position correctly (See the jpg).
Getting text to match DXF is on my TODO list. I've got some documentation here with some other caveats of DXF importing.

However, I see from your DXF file that it included RTF text...I didn't even know DXF could do that!?! I've uploaded a new version with a VERY VERY quick hack to pull out the plain text from the RTF (I've made no attempt yet to interpret the text formatting from the RTF codes yet).


Originally Posted by spalm
I selected the 5 circles and clicked Geometry to Gcode from the Tools menu. If you let everything default and click Write File, you get a nasty error because the output filename was not entered. OK. I entered a filename and tried again. All OK. But the result file when viewed in a Gcode Viewer has nice rapid positions, but the circles are really large. Am I in an mm to inch zone? I’ll study the Gcode some more.
Blimey!!! You don't hang about do you? Well done!!

The new version isn't quite so unfriendly about gcode output filename errors.

There was also a bug where G02 and G03 gcodes (arcs) didn't always write the I and J parameters (when they had not changed from previous). This *seems* to fix the problem you mentioned.

Inch/Metric issues wouldn't surprise me. I mostly work in Metric so haven't tested imperial support much. I've got some brief notes about changing units here.
Detecting units from DXF files is a bit hit and miss, but in your case, I think cambam got it right and used a scale of 25.4 (inches).

With your example, you would want to relocate the gcode to nearer the origin presumably. Hopefully in later versions I'll add more support for moving
objects about and setting gcode origins.

Also in this release, I've made the version checking a bit more unobtrusive...especially when it fails .

Thanks a bundle for taking the time to test the program so thoroughly...talk about jumping in feet first!! With feedback like this we should get the thing useable in no time!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-19-2005, 11:26 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by santiniuk
One of the 'feature's that would be useful is some form of wizard that guides through the generation of gcode for PCB isolation. I know your an expert at this now
Good idea! (Have you been peeking at my TODO list??)

Reading Gerber and Excellon files properly is slated for beta 0.6.
PCB isoloation is one task I am very keen to use cambam for, so I'd like to make it as painless as possible to use.

BIG Thanks Santini and MrBean for very early beta testing. If you think this version sucks, you should have seen Beta 0.1 these guys endured!!!!!
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 11-19-2005, 11:35 AM
10bulls's Avatar  
Join Date: Feb 2005
Location: UK
Posts: 502
10bulls is on a distinguished road

Originally Posted by santiniuk
Forgot to mention, how is my 'one handed' rotation code coming along
Jeez...you'll be body popping next!
One handed code is in hand (so to speak)...beta 0.6 latest!!!
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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





All times are GMT -5. The time now is 09:26 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353