Results 1 to 4 of 4

Thread: Selecting Dynamic Block By Name in AutoCAD

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2023-02
    Posts
    1
    Login to Give a bone
    0

    Default Selecting Dynamic Block By Name in AutoCAD

    Hello, I would like some help with selecting block by name, I have a working code, but want to replace the entsel with something that automatically selects an object by name. Any help would be appreciated, thank you! My code is attached.
    Attached Files Attached Files

  2. #2
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: Selecting Dynamic Block By Name in AutoCAD

    Please upload your sample.dwg , with some dyn blocks .

  3. #3
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Selecting Dynamic Block By Name in AutoCAD

    I'm really busy at the moment, so I don't have time to help you edit your lisp. However, I can point you in the right direction. Whenever you edit a dyn block by changing one of it's dynamic properties, stretch, etc., AutoCAD creates an Anonymous block based on the original block definition. An anonymous block has a block name that starts with "U**" and doesn't show up in block lists, like the CLASSICINSERT or RENAME dialogs. But the ActiveX object has an EffectiveName property that you can use in a selectionset filter. With that knowledge, you can search this forum for some code samples.
    C:> ED WORKING....


    LinkedIn

  4. #4
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    561
    Login to Give a bone
    0

    Default Re: Selecting Dynamic Block By Name in AutoCAD

    Like Ed you can ssget blocks then as a second step look for "effective name" by looping through the blocks selected and say make a second selection set.

    Code:
    (setq ss (ssget '((0 . "INSERT")(cons 2 "**U*"))))
    Note block name is "*Uxxx"

Similar Threads

  1. Replies: 2
    Last Post: 2018-12-06, 09:51 PM
  2. Replies: 1
    Last Post: 2017-01-15, 12:22 AM
  3. Replies: 0
    Last Post: 2015-03-20, 10:57 AM
  4. 2013: Revit MEP 2013 is de-selecting components and selecting browser items!
    By enerGwizz in forum Revit MEP - General
    Replies: 1
    Last Post: 2013-01-12, 09:48 PM
  5. Replies: 12
    Last Post: 2010-01-08, 07:49 PM

Tags for this Thread

Posting Permissions

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