+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,492

    Default Looking for a LISP routine...

    Registered forum members do not see this ad.

    Anyone have a Lisp routine of a keynote (circle keynote prefereably) with an attribute that when you copy it, it numbers automatically? i have to number HVAC grille locations per Unit, and so i have a lot of "repeating" keynotes. it just has to start from one and go up until i stop the routine, and start back from one when i restart the routine. Anyone have anything like this laying around in a dusty corner of your hard drive?? Thanks in advance.....
    Tannar Frampton | Facilities Engineering | Revit 2013
    Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio

  2. #2
    Super Member fixo's Avatar
    Computer Details
    fixo's Computer Details
    Operating System:
    Windows 7
    Motherboard:
    E7500
    CPU:
    Intel(R)Core(TM)2 DUO CPU 2.93HGz
    RAM:
    4098 Gb
    Graphics:
    1024 Gb
    Using
    AutoCAD 2009
    Join Date
    Jul 2005
    Location
    Pietari, Venäjä
    Posts
    1,587

    Default

    Play around this one
    There is not exactly what you need
    but may helps
    Change a keynote block name and tag to
    your suit

    ~'J'~

    Code:
    (defun c:ibl (/ atd blk cnt ech ipt next next_data osm tag)
      (setq osm (getvar "osmode"))
      (setq ech (getvar "cmdecho"))
      (setq atd (getvar "attdia"))
      (setvar "osmode" 0)
      (setvar "cmdecho" 0)
      (setvar "attdia" 1)
    
      (setq cnt (getint "\nEnter first number: "))
      (if cnt
      (progn
      ;(setq tag (strcase (getstring "\nEnter attribute tag for numbering: ")))
      (setq tag "SEQ");change attribute tag "SEQ" to your suit
      
    
    (while (setq ipt (getpoint "\nPick insertion point"))
    
    	(command "-insert" "ONE" ipt 1 1 0);<- change block name "ONE" here
    	(setq blk (entlast))
    	(setq next blk)
            (while (setq next (entnext next))
    	(setq next_data (entget next))
    	(if (= tag (cdr (assoc 2 next_data)))
    	  (progn
    	    (entmod (subst (cons 1 (itoa cnt)) (assoc 1 next_data) next_data))
    	    (entupd blk)
    	  )
    	)
          )
    		    (setq cnt (1+ cnt))
    		    )
          )
        )
    
      (setvar "osmode" osm)
      (setvar "attdia" atd)
      (setvar "cmdecho" ech)
      (prin1)
      )
     (prompt "\ntype iBL to execute ...")
     (prin1)
     ;;;TesT : (c:ibl)

  3. #3
    Senior Member
    Computer Details
    VVA's Computer Details
    Operating System:
    Windows 7
    CPU:
    Intel Core i5-2400
    RAM:
    8 Gb
    Graphics:
    Nvidia Quadro 600
    Primary Storage:
    Seagate 500 GB + WD 750 GB
    Monitor:
    Philips 27"
    Using
    AutoCAD 2013
    Join Date
    Dec 2006
    Location
    Minsk, Belarus
    Posts
    401

  4. #4
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,492

    Default

    Fatty, you are the friggin' MAN. awesome dude, thanks... worked PERFECT.

    EDIT: VVA, thanks for the links, i'll check those out too. but Fatty made exactly what i was looking for.
    Tannar Frampton | Facilities Engineering | Revit 2013
    Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio

  5. #5
    Super Member fixo's Avatar
    Computer Details
    fixo's Computer Details
    Operating System:
    Windows 7
    Motherboard:
    E7500
    CPU:
    Intel(R)Core(TM)2 DUO CPU 2.93HGz
    RAM:
    4098 Gb
    Graphics:
    1024 Gb
    Using
    AutoCAD 2009
    Join Date
    Jul 2005
    Location
    Pietari, Venäjä
    Posts
    1,587

    Default

    Registered forum members do not see this ad.

    You are welcome, Tannar
    Cheers

    ~'J'~

Similar Threads

  1. Combine three lisp routine into one routine.
    By BrianTFC in forum AutoLISP, Visual LISP & DCL
    Replies: 0
    Last Post: 7th Feb 2012, 05:11 pm
  2. Need help with a Lisp Routine
    By BrianTFC in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 31st Jan 2012, 07:28 pm
  3. m2s lisp routine
    By neilma in forum AutoCAD 3D Modelling & Rendering
    Replies: 19
    Last Post: 30th Sep 2010, 04:14 pm
  4. Replies: 3
    Last Post: 10th Aug 2010, 04:39 am
  5. Looking for Lisp routine
    By Eeyore in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 17th Dec 2008, 10:04 am

Bookmarks

Posting Permissions

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