Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm just not sure what's going on with this and I hope a second set of eyes will help.
I have some code that's supposed to create a block that contains an attribute.
This is my code, but it's not working. I think it fails at "(cons 2 tagName)".
I'm not sure if it's because of the combination of hard code and the variables. If so, how do you use both methods in the same entmake?
(setq blockName "Test1"
insPt '(0.0 0.0 0.0)
tagName "TAG_NAME"
vis 0
justifyHor 0)
(entmake (list (cons 0 "BLOCK") (cons 2 blockName) (cons 10 '(0.0 0.0 0.0)) (cons 70 2) ) ) (entmake (list '(0 . "ATTDEF") '(1 . "") (cons 2 tagName) '(3 . "Enter Value") '(7 . "RomanS") '(8 . "DIM_1") (cons 10 insPt) (cons 11 insPt) '(40 . 2.20) (cons 71 vis) ;0=visible, 1=invisible (cons 72 justifyHor) ;0=Left, 1=Center, 2=Right '(74 . 2) ;2=Middle ) ) (entmake (list (cons 0 "ENDBLK") (cons 8 "0") ) )
Thanks,
Mark
Solved! Go to Solution.