+ Reply to Thread
Page 3 of 7 FirstFirst 1 2 3 4 5 ... LastLast
Results 21 to 30 of 66
  1. #21
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    206

    Default

    Registered forum members do not see this ad.

    Hence the statement
    "Problem I can see with that is, which one the two will be moved to "Duplicates" layer?"
    It is better to be in the lower-order entities.

    Change:
    (setq objs (ssget "_X" '((0 . "~VIEWPORT") (0 . "~INSERT"))))
    to:
    (setq objs (ssget ":L" '((0 . "~VIEWPORT") (0 . "~INSERT"))))
    Resolved.

    How'd you propose to go about doing that?
    We could include a prompt to select an entity for layer information and retain enitities on that layer. and the rest would be moved to a new layer with the its original name with a suffix of _D?

    Would that work for you?
    For my case it is preferable that the entities considered duplicates (or common) detected in the lower order of overlapping entities, are sent to its own layer. The suggestion of layers with the suffix D is interesting.
    In short, the most important thing is that made ​​the detection and differentiation of the entities considered duplicates, so it will be possible to manipulate independently.

  2. #22
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,161

    Default

    I see. let see what i can do. BRB

  3. #23
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    206

    Default

    pBe,
    Thank you. I'm waiting.
    However, I continue to try the latest version of the routine but I find several inconsistencies. I see that some entities that are not duplicates are detected as such and sent to the respective layer. Also, sometimes duplicate entities are directed to the respective layer but does not assume the color set for the same.
    Certainly these are problems to be solved.

  4. #24
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,161

    Default

    I noticed that too

    Post Updated:

    Check the previous posted code

    Quote Originally Posted by teknomatika View Post
    Also, sometimes duplicate entities are directed to the respective layer but does not assume the color set for the same.
    EDIT: You want to keep the oriignal color for the duplicates? If the color properteis of the duplicate entities are BYLAYER it would follow the new layers color property, in which case is easy to include that feature in the code, but if not bylayer it will retain its color.
    Last edited by pBe; 6th Sep 2011 at 12:13 pm.

  5. #25
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    206

    Default

    pBe,
    I prefer to be assigned a different color.
    Tanks.

  6. #26
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,161

    Default

    Quote Originally Posted by teknomatika View Post
    pBe,
    I prefer to be assigned a different color.
    Tanks.
    What color might that be? Did you try the modified code?

  7. #27
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    206

    Default

    pBe,
    Any color. is indifferent.

    However I tried the new version of the routine. It seems to be better. But still some inconsistencies.
    I attach an image to better understand.

    The result after running the routine is not consistent: Sometimes doing the work properly and sometimes not. Strange.

    duplicates_example_2.jpg

  8. #28
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,161

    Default

    Quote Originally Posted by teknomatika View Post
    pBe,
    However I tried the new version of the routine. It seems to be better. But still some inconsistencies.
    I suspect the inner square are different entities.. one is PLINE the other are lines or the other three are not exact geometrically the same

  9. #29
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    206

    Default

    No. If no polylines. The polylines of the rectangles were previously exploded.
    In most cases the routine performs the task well. It's almost perfect.

  10. #30
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,161

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by teknomatika View Post
    No. If no polylines. The polylines of the rectangles were previously exploded.
    In most cases the routine performs the task well. It's almost perfect.
    Strange indeed
    Anyhoo. what do you want to do with the colors?

    POST UPDATED: includes color retention for new duplicate layer
    Last edited by pBe; 6th Sep 2011 at 01:56 pm.

Similar Threads

  1. Combine 2 lisps to select last n entities drawn
    By flopo in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 3rd Jul 2011, 03:44 pm
  2. Replies: 2
    Last Post: 11th Nov 2010, 10:53 am
  3. Can't Select Entities at Non-Zero Elevation
    By Schumi in forum AutoCAD Bugs, Error Messages & Quirks
    Replies: 1
    Last Post: 12th May 2009, 12:31 am
  4. Req: How to select all entities in a layer? [VBA]
    By theone in forum AutoLISP, Visual LISP & DCL
    Replies: 15
    Last Post: 7th Jul 2008, 09:42 am
  5. Delete duplicate entities
    By mazucals in forum AutoLISP, Visual LISP & DCL
    Replies: 12
    Last Post: 11th Jul 2007, 08:41 pm

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