Results 1 to 9 of 9

Thread: Addition to Revision Cloud

  1. #1
    100 Club
    Join Date
    2003-03
    Posts
    129

    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!

  2. #2
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986

    Default Re: Addition to Revision Cloud

    Plain vanilla AutoCAD includes the REVCLOUD command that does exactly that (at least in 2004; I don't know about earlier versions)...

  3. #3
    100 Club
    Join Date
    2003-03
    Posts
    129

    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!

  4. #4
    100 Club jhohman's Avatar
    Join Date
    2003-08
    Location
    Spring Hill, Florida
    Posts
    195

    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.

  5. #5
    All AUGI, all the time CAB2k's Avatar
    Join Date
    2002-12
    Location
    Brandon, Florida
    Posts
    687

    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-11 at 10:28 PM.

  6. #6
    Past Vice President peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu Hawaii
    Posts
    575

    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 04:49 PM. Reason: update

  7. #7
    Woo! Hoo! my 1st post
    Join Date
    2002-10
    Posts
    1

    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 Attached Files

  8. #8
    Woo! Hoo! my 1st post
    Join Date
    2002-12
    Posts
    1

    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 Attached Files
    Last edited by robert_l_bob_tucker; 2004-08-05 at 02:52 PM. Reason: Attachment didn't take

  9. #9
    Member
    Join Date
    2010-02
    Posts
    4

    Default Re: Addition to Revision Cloud

    Quote Originally Posted by robert_l_bob_tucker View Post
    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
    AWESOME!!!
    Totally works. Instructions are a little confusing at first but the .lsp totally works.

    THANKS!!

Similar Threads

  1. Revision Cloud and Tag
    By techsupport.161645 in forum Revit Architecture - General
    Replies: 1
    Last Post: 2010-03-19, 11:41 AM
  2. Revision Cloud
    By sandeep_koodal in forum AutoCAD Tips & Tricks
    Replies: 0
    Last Post: 2009-03-24, 03:26 AM
  3. Revision Cloud
    By ljones.27809 in forum AutoCAD General
    Replies: 4
    Last Post: 2005-09-01, 06:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •