Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-07-14, 10:10 PM   #1
martyk
100 Club
 
Join Date: 2003-03
Posts: 116
martyk has a bright futuremartyk has a bright futuremartyk has a bright futuremartyk has a bright futuremartyk has a bright futuremartyk has a bright future
Talking Addition to Revision Cloud

Greetings all! Is there a Lisp routine out there that will turn a shape drawn with the polyline command, or even a circle, into the "bumps" of the revision cloud? Thanks!
martyk is offline   Reply With Quote
Old 2004-07-14, 10:45 PM   #2
sinc
AUGI Addict
 
sinc's Avatar
 
Join Date: 2004-02
Location: Colorado
Posts: 1,531
sinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the stars
Default

Plain vanilla AutoCAD includes the REVCLOUD command that does exactly that (at least in 2004; I don't know about earlier versions)...
__________________
-- Sinc
Civil-3D/Map 2009
http://www.ejsurveying.com
http://www.quuxsoft.com
(Sincpac-C3D)
sinc is offline   Reply With Quote
Old 2004-07-15, 03:26 PM   #3
martyk
100 Club
 
Join Date: 2003-03
Posts: 116
martyk has a bright futuremartyk has a bright futuremartyk has a bright futuremartyk has a bright futuremartyk has a bright futuremartyk has a bright future
Default RE: Addition to Revision Cloud

Thanks for your input Richards.64879! We are currently using AutoCad 2002 but I went to another machine which has 2005 on it and it works exactly as you said it would. I'll just wait for 2005 as we are looking to roll that out here very soon. Thanks again!
martyk is offline   Reply With Quote
Old 2004-07-15, 03:46 PM   #4
jhohman
100 Club
 
jhohman's Avatar
 
Join Date: 2003-08
Location: Spring Hill, Florida
Posts: 195
jhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightlyjhohman is glowing brightly
Default RE: Addition to Revision Cloud

The REVCLOUD command is available in 2002, but it is part of the express tools only, Autodesk must have added it to "vanilla" AutoCAD with the 2004 release.
__________________
Jay Hohman
CAD Technician
Pulte Homes, Inc.

If you lack the time to do something right the first time, when will you have time to fix it?
jhohman is offline   Reply With Quote
Old 2004-07-24, 07:53 PM   #5
CAB2k
All AUGI, all the time
 
CAB2k's Avatar
 
Join Date: 2002-12
Location: Brandon, Florida
Posts: 685
CAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the starsCAB2k is shooting for the stars
Default RE: Addition to Revision Cloud

You may want to try my pl2cloud routine.
Found here.
http://www.theswamp.org/forum/index.php?topic=1319.0

You may need to register to view this forum. So if you don't go directly to the link,
just register, it's free, and you will ba able to download it.

CAB

Last edited by CAB2k : 2005-11-12 at 12:28 AM.
CAB2k is offline   Reply With Quote
Old 2004-07-25, 06:45 PM   #6
peter
Vice President / Director
 
peter's Avatar
 
Join Date: 2000-09
Location: Kenosha Wisconsin
Posts: 375
peter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the starspeter is shooting for the stars
Default RE: Addition to Revision Cloud

Here is a simple revision cloud program


The original question was could you turn an existing polyline into a cloud.

(cloudx2 (car (entsel)))) will do that with loading the routines below.

The there might be a problem with the direction of the bulges. The bulge routine below changes their orientation.

Peter Jamtgaard

Code:
(defun C:Cloud (/ entSelection)
 (vl-load-com)
 (princ "\nDraw polyline clockwise around area: ")
 (vl-cmdf "pline")
 (setq entSelection (entlast))
 (while (= (getvar "cmdactive") 1)
  (vl-cmdf pause)
 )
 (if (/= entSelection (entlast))(cloudx2 (entlast)))
)
(defun Cloudx2 (entSelection / objSelection 
                               sngIncrement 
                               sngLength 
                               sngPosition 
                               ssSelections)
 (if debug (princ "\nCloudx2 "))
 (setq objSelection (vlax-ename->vla-object entSelection)
 )
 (vla-put-closed objSelection :vlax-true)
 (initget 6)
 (if (not  (setq sngDist (getdist "\nEnter relative arc diameter ")))
  (setq sngDist 0.125)
 )

 (setq sngLength   (vlax-curve-getDistAtParam objSelection
                    (vlax-curve-getEndParam objSelection)
                   )
       sngPosition 0
       sngIncrement (* (getvar "dimscale")
                     sngDist
                    )
                    
 )
 (setvar "cmdecho" 0)
 (while  (< sngPosition (- sngLength sngIncrement))
  (vl-cmdf "arc")
  (vl-cmdf (vlax-curve-getPointAtDist objSelection sngPosition))
  (setq sngPosition (+ sngPosition sngIncrement))
  (vl-cmdf "E")
  (vl-cmdf (vlax-curve-getPointAtDist objSelection sngPosition))
  (vl-cmdf "Angle" 180)  
  (if ssSelections 
   (setq ssSelections (ssAdd (entlast) ssSelections))
   (setq ssSelections (ssAdd (entlast)))
  )
 )
 (vl-cmdf "arc")
 (vl-cmdf (vlax-curve-getPointAtDist objSelection sngPosition))
 (vl-cmdf "E")
 (vl-cmdf (vlax-curve-getPointAtDist objSelection 0))
 (vl-cmdf "Angle" 180)  
 (vl-cmdf "pedit" (entlast) "y" "j" ssSelections "" "")
 (entdel entSelection)
)

(defun C:BULGE (/ CNT COORDS DIV EOBJ )
 (setq EOBJ (vlax-ename->vla-object (car (entsel "Select pline: "))))
 (if EOBJ
  (progn
   (setq COORDS (vlax-safearray->list
                 (vlax-variant-value 
                  (vla-get-coordinates EOBJ)
                 )
                )
   )
   (setq CNT 0)
   (if (or (= (vla-get-objectname EOBJ) "AcDb2dPolyline")
           (= (vla-get-objectname EOBJ) "AcDb3dPolyline")
       )       
    (setq DIV 3)
    (setq DIV 2)
   )
   (while (< CNT (/ (length COORDS) DIV))
    (if (< (vla-getbulge EOBJ CNT) 0.0)
     (vla-setbulge EOBJ CNT 1.0)
     (vla-setbulge EOBJ CNT -1.0)
    )
    (setq CNT (1+ CNT))
   )
  )
 )
 (prin1)
)

Last edited by peter : 2004-07-25 at 06:49 PM. Reason: update
peter is offline   Reply With Quote
Old 2004-08-04, 08:19 AM   #7
CHRIS.HAMMOND
Woo! Hoo! my 1st post
 
Join Date: 2002-10
Posts: 1
CHRIS.HAMMOND is starting their journey
Smile RE: Addition to Revision Cloud

Hi,

Release 10 came with this Cloud routine. It works well but if you can figure out how to change the colour to 'bylayer' it would make it even easier.

Chris
Attached Files
File Type: zip CLOUD.zip (899 Bytes, 29 views)
CHRIS.HAMMOND is offline   Reply With Quote
Old 2004-08-05, 04:45 PM   #8
robert_l_bob_tucker
Woo! Hoo! my 1st post
 
Join Date: 2002-12
Posts: 1
robert_l_bob_tucker is starting their journey
Default RE: Addition to Revision Cloud

I have attached (I hope I did it correctly) a .txt file to this thread name Ortho_cloud.txt. You can simply change the extension to .lsp if you want. The routine draws a revision cloud along a straight path, the intent was to provide a clean cloud where drawings are conjested. Try it and if you like it let me know.

Bob Tucker
Attached Files
File Type: txt ortho_cloud.txt (3.8 KB, 38 views)

Last edited by robert_l_bob_tucker : 2004-08-05 at 04:52 PM. Reason: Attachment didn't take
robert_l_bob_tucker is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Revision Tables rrawlins Inventor "Original" Wish List (Archived) 5 2005-12-09 06:20 AM
Keynote and Revision Schedules Scott Davis Revit Architecture - General 16 2004-05-01 05:40 PM
Revision Schedule melbs19 Revit Architecture - General 5 2004-01-22 01:48 AM
Revision Cloud Luis Vinagre Revit Architecture - General 4 2003-08-20 04:10 PM


All times are GMT +1. The time now is 12:31 PM.