- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
when I use "entget" in the selection of block with attribute, only "insert" can be found and no other entity in the selection set, as below part 1, I can only find the attached attribute in the block with the entnext as below part 2, hwta's the reason, and is it possible I can get attribute value in the blcok with one time selection?
(setq s (ssget))
命令: (setq A (entget (ssname s 0)))
((-1 . <图元名: 1f224f2a890>) (0 . "INSERT") (330 . <图元名: 1f27c407f00>) (5 . "19D9") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbBlockReference") (66 . 1) (2 . "MCCB") (10 0.0 0.0 0.0) (41 . 1.0) (42 . 1.0) (43 . 1.0) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210 0.0 0.0 1.0))
(setq a (entnext (ssname s 0)))
(setq B (entget a))
((-1 . <图元名: 1f224f2a8b0>) (0 . "ATTRIB") (330 . <图元名: 1f224f2a890>) (5 . "19DB") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbText") (10 4390.22 266.345 0.0) (40 . 2.0) (1 . "16A") (50 . 0.0) (41 . 1.0) (51 . 0.0) (7 . "Standard") (71 . 0) (72 . 0) (11 0.0 0.0 0.0) (210 0.0 0.0 1.0) (100 . "AcDbAttribute") (280 . 0) (2 . "SETTING") (70 . 0) (73 . 0) (74 . 0) (280 . 1))
Solved! Go to Solution.