Author Topic: I need a lisp that changes the first character of attributes  (Read 7348 times)

0 Members and 1 Guest are viewing this topic.

antistar

  • Guest
Re: I need a lisp that changes the first character of attributes
« Reply #15 on: July 03, 2012, 07:42:46 PM »
Lee,
Thank you for your explanations.  :-)

Evidently wasting my time since the code has been provided on a plate.

And you, never provided any code on a plate? You've helped so many people.

pBe

  • Bull Frog
  • Posts: 402
Re: I need a lisp that changes the first character of attributes
« Reply #16 on: July 04, 2012, 01:26:26 AM »
Is there more than one attribute in the inserts?
If so how will that attribute be identified?

I was thinking of the same thing, guess there's only one attribute on the block and then the  OP wants to be prompted for selection , otherwise the code would be needing a conditional test.

Tried Tharwats code on a block with mulitple Attributes and each and every values now has an "A" prefix including blanks.
So if that is the case, something like this would be a good addition. <that is if "_X" selection method is prefered>

(if (wcmatch (vla-get-textstring x) "pattern*")                             
 .....
)
« Last Edit: July 04, 2012, 01:57:29 AM by pBe »

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: I need a lisp that changes the first character of attributes
« Reply #17 on: July 04, 2012, 08:06:51 AM »
Good idea.
Perhaps if the attribute had a unique TAG name it could be used for identification.  8-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

pBe

  • Bull Frog
  • Posts: 402
Re: I need a lisp that changes the first character of attributes
« Reply #18 on: July 04, 2012, 09:08:38 AM »
Good idea.
Perhaps if the attribute had a unique TAG name it could be used for identification.  8-)

Better  :-)

ahsattarian

  • Newt
  • Posts: 112
Re: I need a lisp that changes the first character of attributes
« Reply #19 on: December 07, 2016, 12:42:12 AM »
I can help u



Hello
 if u r still needing that program i can help u.
 Tell me to guide u.
 Amir 

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: I need a lisp that changes the first character of attributes
« Reply #20 on: December 07, 2016, 04:47:12 AM »
Perfect, exactly what I need.
@ahsattarian:
Reviving very old threads that have already been solved does not make much sense.
Why don't you try contributing to more recent threads?