Visual LISP, AutoLISP and General Customization
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Match Block Properties LISP

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
krazeymike
794 Views, 6 Replies

Match Block Properties LISP

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

Tags (1)
Labels (1)
6 REPLIES 6
Message 2 of 7
Sea-Haven
in reply to: krazeymike

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

Look at line 75.

Message 3 of 7
krazeymike
in reply to: Sea-Haven

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 

Message 4 of 7
Sea-Haven
in reply to: krazeymike

Post a sample dwg.

Message 5 of 7
krazeymike
in reply to: krazeymike

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

Message 6 of 7
Š’eekeeCZ
in reply to: krazeymike

Try and see.

Message 7 of 7
krazeymike
in reply to: Š’eekeeCZ

Worked perfectly. Thanks so much!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta