- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need help figuring out what's not right with this routine
I'm trying to create a textmask but it's not working
If I don't use the routine and draw some MTEXT, then type "TEXTMASK" and type "L" for last; the mask works fine, but not in the routine
I'm hoping someone can let me know what I'm doing wrong
(SETQ P1(GETPOINT "\n<center point>: "))
(SETQ TAGNUM(GETINT "\n<enter tag number>: "))
(COMMAND "CIRCLE" P1 "4")(SETQ G1(ENTLAST))
(COMMAND "MTEXT" P1 "H" "4" "R" "0" "J" "MC" "W" "0" TAGNUM "")(SETQ G2(ENTLAST))
(COMMAND "TEXTMASK" "L" "" "")
(SETQ G3(SSADD))(SSADD G1 G3)(SSADD G2 G3)
(SETQ BNUM(GETVAR "USERI5"))
(SETQ TGNAME(STRCAT "_Tag"(ITOA BNUM)))
(SETVAR "USERI5"(+ BNUM 1))
(COMMAND "BLOCK" TGNAME P1 G3 "")
(COMMAND "-INSERT" TGNAME P1 "" "" 0)
Thanks in advance,
Larry
Solved! Go to Solution.