Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: LISP REQUEST : Revcloud and insert a evision Tag

  1. #1
    Member
    Join Date
    2012-06
    Posts
    9

    Default LISP REQUEST : Revcloud and insert a Revision Tag

    Hello all;

    i found this LISP over the internet at Swamp :
    http://www.theswamp.org/index.php?to...0307#msg480307

    what it does is you make a Rectangular / Polygonal Revcloud and you have the Option to enter your own Arc Lenghts
    am wondering if it can be modified to add a Attribute Block after creating the cloud.

    what i want is this, if it is not too much :

    1. Issue the command
    2. Ask for a Revision Number
    3. Add that revision number to the to be inserted attib block and also make a new layer in this format : A_RevCloud-(rev.no), if the Layer is existing, warn the user, if not, create the layer
    4. Ask where to put (Model or Paper Space)
    5. Do the revision cloud based on the lisp stated above
    6. Ask for the insertion point of the Attrib. Tag

    my attrib tag is saved in the autocad support folder, RevTag.dwg


    Thanks in advance to anyone who will assist me!
    more power to all!
    Last edited by Orzabal; 2012-09-29 at 11:01 AM.

  2. #2
    I could stop if I wanted to pbejse's Avatar
    Join Date
    2010-10
    Posts
    395

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    I guess you would stand a better chance replying on the original thread Orzabal. The addition you rquire isn't that difficult.

  3. #3
    Member
    Join Date
    2012-06
    Posts
    9

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    hello pbejse;

    i tried to register to that site but i cant't. don't know why.
    that is why i posted it here

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    Have you searched these forums? I created something similar a few years back.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    Member
    Join Date
    2012-06
    Posts
    9

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    Quote Originally Posted by Opie View Post
    Have you searched these forums? I created something similar a few years back.
    i did last night but can't find anything sorry...

  6. #6
    AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    2,287

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    I wrote a routine (with some help here in AUGI) that you draw a revcloud in paperspace and place a rev triangle, and asks for input for revsion number.
    If you're still looking for one tomorrow, and you would like it, I'll post it, I'm not at a place where I can upload it now.
    Ted
    ____________________________________________________________________________________
    AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)

  7. #7
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Hartford, Michigan
    Posts
    3,086

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    Quote Originally Posted by Opie View Post
    Have you searched these forums? I created something similar a few years back.
    As did I..
    Christopher T. Cowgill, P.E.
    WIGHTMAN & ASSOCIATES, INC.
    ENGINEERING <> SURVEYING <> ARCHITECTURE
    AutoDesk Infrastructure Design Suite Premium 2013 x64
    Windows 7 Pro x64

  8. #8
    AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    2,287

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    Quote Originally Posted by Orzabal View Post
    Hello all;

    i found this LISP over the internet at Swamp :
    http://www.theswamp.org/index.php?to...0307#msg480307

    what it does is you make a Rectangular / Polygonal Revcloud and you have the Option to enter your own Arc Lenghts
    am wondering if it can be modified to add a Attribute Block after creating the cloud.

    what i want is this, if it is not too much :

    1. Issue the command
    2. Ask for a Revision Number
    3. Add that revision number to the to be inserted attib block and also make a new layer in this format : A_RevCloud-(rev.no), if the Layer is existing, warn the user, if not, create the layer
    4. Ask where to put (Model or Paper Space)
    5. Do the revision cloud based on the lisp stated above
    6. Ask for the insertion point of the Attrib. Tag

    my attrib tag is saved in the autocad support folder, RevTag.dwg


    Thanks in advance to anyone who will assist me!
    more power to all!
    Here is the routine I referred to in my provious post.
    This puts you in paperspace, sets cloud arc is .375", creates or set layer to G-ANNO-REVS, asks you to draw your polyline (which turns into revcloud).
    You will need to modify it to meet your needs, this calls up a block defiinition (.dwg) called "REVTAG"
    Code:
    (defun C:rc (/ arc)
    (setq lyr (getvar "clayer"))
    (setvar "tilemode" 0)
    (setvar "attreq" 1)
    (setvar "attdia" 1)
    (command "_pspace")
       (setq arc 0.375); rev cloud arc set to .375"
       (if
         (=
           (tblsearch "layer" "G-ANNO-REVS")
           nil)
    (command "-layer" "make" "G-ANNO-REVS" "color" "5" "" "lw" "0.5" "" "lt" "continuous" "" "")
         );look for this layer if not found, create it, set it current
            (command "_.PLINE"); draw pline
         (while (= (getvar "CMDNAMES") "PLINE")
           (command pause)
         )
         (command "-layer" "set" "G-ANNO-REVS" "") 
         (command "pedit" "l" "c" "")
         (command "._REVCLOUD" "a" arc "" "O" (entlast) "N");change pline into revcloud)
    (command "-insert" "c:\\lisp\\REVTAG" pause "" "" "") ;;<---need to modify to your block and path here
    (setvar "clayer" lyr)
    )
    (princ)
    Hope this helps
    Attached Files Attached Files
    Ted
    ____________________________________________________________________________________
    AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)

  9. #9
    Member
    Join Date
    2012-06
    Posts
    9

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    Thanks ccowgill and tedg;

    i will try this out..

    but honestly i am more comfortable with the routine in the link that i've posted
    i'll see if i can combine these two routines...hopefully.

    coz am not that knowledgable in Lisping

  10. #10
    I could stop if I wanted to pbejse's Avatar
    Join Date
    2010-10
    Posts
    395

    Default Re: LISP REQUEST : Revcloud and insert a evision Tag

    Ask where to put (Model or Paper Space)
    That is the part i don't really understand Orzabal.

    Try this link
    http://forums.augi.com/search.php?searchid=121737

    according to Opie he wrote something similar. I hadn't had a chance to browse thru them, theres only 7.. well 6 if you dont count this thread which includes the keyword "revcloud" and user "Opie".

    HTH


    but honestly i am more comfortable with the routine in the link that i've posted
    well....

Page 1 of 2 12 LastLast

Similar Threads

  1. Request lisp Help
    By jwchambers in forum AutoLISP
    Replies: 4
    Last Post: 2012-03-16, 07:02 PM
  2. revcloud lisp
    By CAD Brad in forum AutoLISP
    Replies: 12
    Last Post: 2010-11-04, 09:37 PM
  3. Lisp Request
    By sadikozer34 in forum AutoLISP
    Replies: 0
    Last Post: 2009-09-06, 08:49 AM
  4. Write a LISP routine to enhance the revcloud command
    By melissa.j.seidel in forum AutoLISP
    Replies: 7
    Last Post: 2005-11-14, 05:08 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
  •