CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedlisp

 Post Reply Post Reply
Author
vasuchowdary200 View Drop Down
Newbie
Newbie


Joined: 28.Mar.2011
Location: India
Using: autocad map 2004
Status: Offline
Points: 3
Direct Link To This Post Topic: lisp
    Posted: 29.Mar.2011 at 14:37
actually i have parcelnumbers in sequential like 1 to 999
 
how can i find the missing number from that
 
is ther any lisp for that
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
Direct Link To This Post Posted: 29.Mar.2011 at 15:00
I am not aware of any. But you can export the texts (or attributes) to a text file, sort it, and find any gaps.
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
alanjt View Drop Down
Groupie
Groupie


Joined: 08.Apr.2009
Location: United States
Using: Civil 3D 2009/2011
Status: Offline
Points: 30
Direct Link To This Post Posted: 29.Mar.2011 at 22:43
A quick and dirty sub, but this will return any missing values in a list of numbers with a specified increment.

(defun foo (numberlist inc / low high i lst)
  (setq low  (apply 'min numberlist)
        i    low
        high (apply 'max numberlist)
  )
  (foreach x (cdr (vl-sort numberlist '<))
    (if (/= x (setq i (+ inc i)))
      (setq lst (cons i lst)
            i   (+ inc i)
      )
    )
  )
  (reverse lst)
)


eg.
(foo '(1 3 5 6 7 5 8 9) 1) -> (2 4)
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
Direct Link To This Post Posted: 05.Apr.2011 at 10:42
You can use the SRXMISSING command from our updated srxText utility. See Download.
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,129 seconds.