Match Block Properties LISP

krazeymike
Enthusiast
Enthusiast

Match Block Properties LISP

krazeymike
Enthusiast
Enthusiast

Hi, I currently have a lisp routine to change the block properties. Would somebody be able to help me amend it so that the block 'Position1 X' and 'Position1 Y' are matched also, I am using it for dynamic block text adjustment?

I am very new to LISP routines.
Thankyou in advance

Please see attached

Reply
Accepted solutions (1)
1,148 Views
7 Replies
Replies (7)

Sea-Haven
Mentor
Mentor

Look at adding property "InsertionPoint" to the list of properties.

Look at line 75.

0 Likes

krazeymike
Enthusiast
Enthusiast

Thanks for the reply. The blocks in question are spot heights so the insertion point needs to stay the same.
It's only the 'text attached to a ''Grip Point" that I would like to match. I'm just not sure what the expression is to match the grip point position.
Any help would be greatly appreciated. Thanks 

0 Likes

Sea-Haven
Mentor
Mentor

Post a sample dwg.

0 Likes

krazeymike
Enthusiast
Enthusiast

Ok.
So after some work arounds I've amended my Spot Height dynamic block.

All the properties that I wish to match are custom properties. (ie. visibilty, text rotation and position.)
Attached is a LISP routine that was working fine until I used the Grip chain so that grips would move with the text (as you can see in my sample drawing). Now my Match Block lisp only works when using the command twice. The first instance seems to work however offsets the text position, running the command a second time fixes it.

Any help to fix either my block or lisp routine would be greatly appreciated.
Thanks in advance

0 Likes

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try and see.

0 Likes

krazeymike
Enthusiast
Enthusiast

Worked perfectly. Thanks so much!

 

0 Likes

le-tan-phuc
Enthusiast
Enthusiast

Awesome ! thank you so much !

0 Likes