Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have the following code that creates a block (lwpolyline and attribute). It seems to work just fine, in that the block gets created and inserted. The problem is that the block gets inserted, but it doesn't ask for attribute information. When I enter the attdef command and pick the block, I get, "Select block reference: That block has no editable attributes."
Any ideas as to why the block attribute is not working?
(entmake (list '(0 . "BLOCK") '(100 . "AcDbEntity") '(67 . 0) '(8 . "0") '(100 . "AcDbBlockReference") (cons 2 blockName) '(10 0 0 0) '(70 . 0) ) ) (entmake (apply (function append) (cons (list '(0 . "LWPOLYLINE") '(100 . "AcDbEntity") '(67 . 0) '(410 . "Model") (cons 8 objLayer) '(100 . "AcDbPolyline") (cons 90 (length newPointList)) ; Vertices '(70 . 0) '(70 . 1) ; Closed ) (mapcar (function list) (mapcar (function (lambda (a) (cons 10 a))) newPointList) (mapcar (function (lambda (b) (cons 42 b))) objBulgeList) ) ) ) ) (entmake (list '(0 . "ATTDEF") '(100 . "AcDbEntity") '(100 . "AcDbText") (cons 8 objLayer) '(10 0.0 0.0 0.0) (cons 40 attTextHgt) '(1 . "") '(100 . "AcDbAttributeDefinition") '(3 . "Enter Pad Number") '(2 . "PAD_NUM") '(70 . 0) ) ) (entmake (list '(0 . "ENDBLK") '(100 . "AcDbBlockEnd") '(8 . "0") ) )
Thanks,
Mark
Solved! Go to Solution.