Get Dynamic Block's Original Name (Tip #2188) comes from Michel Chayer's programming library. The utility function named NOMBLK fetches the original name of a dynamic block used in a drawing. Dynamic blocks are inserted using anonymous names (asterisk followed by alphanumeric characters) meaning that the (entget) function of an insert object doesn't return the name of the source block. This LISP function has one parameter for the entity name of a block insert. If you want the routine to ask for an entity selection, then supply nil as the variable value. This handy utility digs into the 360 and 340 DXF codes to extract the desired name. |