CAD block reference to entity

Source: Internet
Author: User

Often, you need to insert a block in CAD, which is the type of insert, not line and polyline. In general, we are not going to edit it, but sometimes we need to select it, such as when the print range is selected, the default is to filter out the Insert type (in fact, this is unreasonable, not considered completely), so now to the block into the entity.

You can use the CAD decomposition (EXPLODE) command directly. It divides the block directly into four lines (line).

But there are hundreds of thousands of DWG diagrams to do this, of course, only the use of means of processing tools. About this batch processing tool in the diagram, I'll share it later.

    1. (Defun c:test ()
    2. ??;; Select the Block (INSERT) for the TK layer
    3. ?? (setq SS (ssget "x" (List (cons 0 "INSERT") (Cons 8 "TK")));
    4. ??;; Decomposition
    5. ?? (Command "EXPLODE" ss "")
    6. ?? (Princ);
    7. ?? (princ " processing finished, please check the verification! ");
    8. )

CAD block reference to entity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.