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! > CAD Software > Autodesk Software (Autocad, Inventor etc)


Autodesk Software (Autocad, Inventor etc) Discuss Autodesk Software (Autocad, Inventor etc) software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-27-2004, 02:24 AM
JSandSO's Avatar  
Join Date: Apr 2003
Location: Australia
Posts: 13
JSandSO is on a distinguished road
line from point in angle

Hi,
How do I draw a line with a certain lenght from an endpoint of an arc
in the same angle as that endpoint if this was not the last object drawn.
I'm trying to find a way not to have to trace the arc before.

jsandso
Reply With Quote

  #2   Ban this user!
Old 01-27-2004, 06:28 AM
wjbzone's Avatar  
Join Date: Apr 2003
Location: United States
Posts: 396
wjbzone is on a distinguished road

I draw line from the center of the arc to the end of the arc - then offset that line by the distance. Draw the line you want -then erase the two constructioin lines.

Don't know a better way.

Bill
Reply With Quote

  #3   Ban this user!
Old 01-27-2004, 06:52 PM
JSandSO's Avatar  
Join Date: Apr 2003
Location: Australia
Posts: 13
JSandSO is on a distinguished road

Thanks Bill,

yes that's what I'm doing as well but I was hoping someone
got a better idea or a small lisp prog. I'm just wondering as
this is a standard function in other cad programs. Just can't
believe AutoCad has no function for that.

jsandso
Reply With Quote

  #4   Ban this user!
Old 01-28-2004, 10:24 AM
wjbzone's Avatar  
Join Date: Apr 2003
Location: United States
Posts: 396
wjbzone is on a distinguished road

JSandSO
Try this lisp function. No guarantee it works every case.
Bill

(defun arcln ()
;draws a line tangent to end of arc
(setq E (ENTSEL "\nSELECT ARC NEAR END TO DRAW TANGENT LINE: "))
(setq lineln (getreal "\nENTER DISTANCE "))

(setq el (entget (car e)))
(setq arcctr (cdr (assoc 10 el)))
(setq pickpt (car (cdr e)))
;determine end of arc to use
(setq ang1 (cdr (assoc 50 el)))
(setq ang2 (cdr (assoc 51 el)))
(setq arcrad (cdr (assoc 40 el)))
(setq p1 (polar arcctr ang1 arcrad))
(setq p2 (polar arcctr ang2 arcrad))
(if (< (distance pickpt p1) (distance pickpt p2))
(setq EndToUse 1)
(setq EndToUse 2)
)
; store end point
(if (eq EndToUse 1)
(setq p3 (polar p1 (- ang1 (/ pi 2)) lineln))
(setq p3 (polar p2 (+ ang2 (/ pi 2)) lineln))
)
;draw line
(if (eq EndToUse 1)
(command "line" p1 p3 "")
(command "line" p2 p3 "")
)
)
Reply With Quote

  #5   Ban this user!
Old 01-28-2004, 11:56 AM
buscht's Avatar  
Join Date: Nov 2003
Location: United States
Posts: 634
buscht is on a distinguished road

Please keep in mind, I learned AutoCad a long time ago and still like to type in commands instead of picking the icons.

Enter "List" and pick the arc.
This will show you information about the arc including the starting and ending angles.
Remember these angles. Autocad draws arcs in a counterclockwise manner so you should be able to tell which angle is which.

Now enter the "LINE" command and pick the endpoint of the arc as your start point.


Your next point should be entered like this, length of line<endangle+90 Depending upon your numbers here is an example. Let's say the ending angle of the arc is 221 degrees and you want a 15" long line

15<311.

That's all there is to it.

There may be faster and better ways, but this seems to do what you want.

If the line goes the wrong way, then subtract 90 instead of adding.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-28-2004, 08:28 PM
JSandSO's Avatar  
Join Date: Apr 2003
Location: Australia
Posts: 13
JSandSO is on a distinguished road

wjbzone,
you are the best, thank you very much for that lisp.
It does exactly what I was looking for.

JSandSO
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
G-Code to DXF WayneHill OpenSource Software 200 04-22-2012 09:51 PM
Visual Basic Controller Project dwwright Visual Basic 29 02-14-2011 01:24 PM
point data in autocad trubleshtr General CAM Discussion 3 03-11-2005 05:32 AM
angle cuts coolman General Metalwork Discussion 1 01-22-2005 11:33 PM
Tool tables Nimrod Mastercam 4 11-24-2003 02:31 PM




All times are GMT -5. The time now is 03:54 PM.





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