search for a specific attribute and adding a new attribute

search for a specific attribute and adding a new attribute

Hans_Knol
Advocate Advocate
226 Views
2 Replies
Message 1 of 3

search for a specific attribute and adding a new attribute

Hans_Knol
Advocate
Advocate

Hi all,

Hope that someone can help me with creating a Lisp file

 

I need a LISP that can be search to block with a specific attribute called “CN1” or “CN2” “CN*” and after that he search in the drawing to a line that’s horizontal or vertical in the direct area of that Attribute and puts a new hidden attribute with the insertion point at the end of that line. The naming from the new hidden attribute must be “X#TERM##”.

The # means that

  • it must be a 2 when the line is vertical and the attribute is on top of the line
  • it must be a 8 when the line is vertical and the attribute is on top of the line
  • it must be a 1 when the line is horizontal and the attribute is on left site of the line
  • it must be a 4 when the line is horizontal and the attribute is on right site of the line

The ## means that

The number must be the same as the following code of the CN* number where the tool was searching for.

 

Hans Knol
0 Likes
227 Views
2 Replies
Replies (2)
Message 2 of 3

Hans_Knol
Advocate
Advocate

The new attributes must also be on layer 0

Hans Knol
0 Likes
Message 3 of 3

ВeekeeCZ
Consultant
Consultant

@Hans_Knol 

seems like you did not follow rule number one, therefore you are ignored - you did post a dwg!?

Your description is kinda difficult to follow, posted picture useless - Better make an effort, make nice explanatory examples, possibly the states before and after. The better you do - the better the answer you'll get. 

0 Likes