mtext layer change, code error

mtext layer change, code error

Anonymous
Not applicable
1,337 Views
9 Replies
Message 1 of 10

mtext layer change, code error

Anonymous
Not applicable
; mtext layer change
; 2017-0726
(defun c:txtlay ()

  (setvar "tilemode" 1)

(setq txt (ssget "_X" '((0 . "MTEXT")(410 . "model")(1 . "*VERS*"))))

	(command "_chprop" "!txt" "" "_la" "34_P-A-GRID-PR" "")

        ); end defun

  (prompt "change mtext layer")
  (prin1)

Hello, experts,

 

This is a simple code, but error still exists. please help.

thanks,

0 Likes
Accepted solutions (1)
1,338 Views
9 Replies
Replies (9)
Message 2 of 10

pbejse
Mentor
Mentor
loose the "!" at "!txt"
Message 3 of 10

Ranjit_Singh
Advisor
Advisor
Accepted solution

@Anonymous wrote:
; mtext layer change
	(command "_chprop" "!txt" "" "_la" "34_P-A-GRID-PR" "")

Hello, experts,

 

This is a simple code, but error still exists. please help.

thanks,


Loose the ! and the quotes. The command will not accept string

(command "_chprop" txt "" "_la" "34_P-A-GRID-PR" "")
Message 4 of 10

pbejse
Mentor
Mentor

@Ranjit_Singh wrote:
...Loose the ! and the quotes. The command will not accept string

As well as the quotes of course. Smiley Very Happy 

 

 

Message 5 of 10

john.uhden
Mentor
Mentor

@pbejse and @Ranjit_Singh both wrote "lose the !" etc..

 

Do you two communicate telepathically?

 

@pbejse:  I don't know how to pronounce your name, but all I can think about is a Petit Basset Griffon Vendéen (PBGV).

I think one went BOS at Westminster within recent years.

John F. Uhden

0 Likes
Message 6 of 10

pbejse
Mentor
Mentor

@john.uhden wrote:

...both wrote "lose the !" etc..


Very subtle John..... grammar check?  Smiley Very Happy

 

Enter grammarly.PNG

 

<---- Isntalled! 

 

 


@john.uhden wrote:

 

..... but all I can think about is a Petit Basset Griffon Vendéen (PBGV).


 No, not even close, but the way I style my hair has an incredible likeness to the breed. ( Yes John, I look up PBGV on the net )

 

 

0 Likes
Message 7 of 10

john.uhden
Mentor
Mentor
grammar check?? Looked fine to me. But

"<---- Isntalled!" makes me think you need a spell chekcer.

John F. Uhden

0 Likes
Message 8 of 10

pbejse
Mentor
Mentor

@john.uhden wrote:
grammar check?? Looked fine to me. But

"<---- Isntalled!" makes me think you need a spell chekcer.

That's Ed Zachary what I want you to see, underscore and all  .Smiley Happy 

 

0 Likes
Message 9 of 10

john.uhden
Mentor
Mentor

Aha!  I'll bet you know the "zacklies" joke.

Sorry, I would have to post it privately if you don't.

I would hate to loose my membership here.

John F. Uhden

0 Likes
Message 10 of 10

pbejse
Mentor
Mentor

@john.uhden wrote:

Aha!  I'll bet you know the "zacklies" joke.

Sorry, I would have to post it privately if you don't.

I would hate to loose my membership here.


Can't say I do....  but let's hear it.

0 Likes