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! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-16-2004, 01:05 PM
itsme's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 445
itsme is on a distinguished road
Parametric equations

Hello everyone

I'm not very good with CAD software (yet!), because I'm very new to it.

I would like to be able to draw accurate curves from parametric equations, but I'm not even sure if any CAD products can do this. Are there any out there that can (and don't cost a fortune)?

Any help would be appreciated.

Thanks
Warren
Reply With Quote

  #2  
Old 06-16-2004, 01:30 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Hi Warren,

Interesting question, I'd like to hear if there is anything like that, too, just for interest's sake.

However, I do know that equations most often give one (or two) different answers based on the actual variable input used. This means that the graph of the solution is based on discrete point sample solutions. For high accuracy, you use lots of points, for low accuracy, you use less.

So the way that this can be handled, (IMO) is with one of three different types of curves called splines. There are B-splines, Cubic splines and Bezier splines. Most CAD programs (I would guess) will allow you to "connect the dots" with one or more of these options. So, you have to work your equations for enough solutions to plot enough points for the accuracy you require. Then, the spline represents one of the reproducible methods of creating the best fitting curve.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 06-16-2004, 01:45 PM
buscht's Avatar  
Join Date: Nov 2003
Location: United States
Posts: 634
buscht is on a distinguished road

itsme, I had an answer for you until you jinked it with that last statement, (and don't cost a fortune).

Parametrics can be expressed mathematically, so if you can write the math formulas you can put them into Excel and let it calculate starting and ending points, radii, etc.

This data can be manually drawn in any inexpensive CAD, or if you use AutoCad you can write a Visual Basic routine to draw the arcs for you using the Excel data.

You have to be pretty good at trig, and VB programming to do this.
Reply With Quote

  #4   Ban this user!
Old 06-16-2004, 02:29 PM
itsme's Avatar  
Join Date: Jun 2004
Location: United Kingdom
Posts: 445
itsme is on a distinguished road

Thanks for the replies,

If I left out the 'and don't cost a fortune' part, could you possibly give me that answer?

It also sounds interesting what you (buscht) had to say about using Excel, but I would like to know exactly whatI could do with the shape once it was in Excel, or is this just a method of graphing it?

Warren
__________________
Have a nice day...
Reply With Quote

  #5   Ban this user!
Old 06-16-2004, 03:34 PM
buscht's Avatar  
Join Date: Nov 2003
Location: United States
Posts: 634
buscht is on a distinguished road

Here's a company that sells an AutoCad solution.
http://www.synthesiscompany.com/asp/....asp?page=home
Of course, you'd have to ask if they can handle curves.

Solidworks or Pro Engineer are parametric driven CAD programs.

With respect to my Excel idea, I am only talking about curves (meaning arcs) not splines like HU is talking about. Anyway, if you have Excel and AutoCad, both can be controlled by Visual Basic macros. You can write these yourself. The macro can read the Excel data, interpret this data and draw the appropriate arcs in AutoCad.

Here's an example of an Excel VB macro that controls Autocad to draw an ARC. You need to know the center point, diameter, and starting and ending angles in order to automate drawing an ARC. Also, for some reason it works in radians, so there is some math in there to translate that.

With a little more work you can have the program fill in these values automatically from the spreadsheet.

Sub addARCROUTINE(x, y, DIA, STARTANGLE, ENDANGLE)
Set ac = GetObject(, "AutoCAD.Application")
Set objModelSpace = ac.ActiveDocument.ModelSpace()
Dim ARCObj As AcadArc
Dim centerPoint(0 To 2) As Double
centerPoint(0) = x: centerPoint(1) = y: centerPoint(2) = 0
Set ARCObj = objModelSpace.addARC(centerPoint, DIA / 2, STARTANGLE * 3.141592 / 180, _
ENDANGLE * 3.141592 / 180)

End Sub

Doing 2D work is pretty easy, 3D is way above my skills and I would recommend you talk to a Solidworks distributor to see if they can do what you want.

As a side note, I have seen some people skip the CAD step and go right from the Excel spreadsheet and generate G code. Afterall its all just numbers.

Good luck
Trent
Reply With Quote

Sponsored Links
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
parametric programming Karl_T CamSoft Products 21 05-24-2005 02:58 PM




All times are GMT -5. The time now is 02:22 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 354 355 356 357 358 359 360 361