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

Match Block Properties LISP

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
krazeymike
1149 Views, 7 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)
7 REPLIES 7
Message 2 of 8
Sea-Haven
in reply to: krazeymike

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

Look at line 75.

Message 3 of 8
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 8
Sea-Haven
in reply to: krazeymike

Post a sample dwg.

Message 5 of 8
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 8
ВeekeeCZ
in reply to: krazeymike

Try and see.

Message 7 of 8
krazeymike
in reply to: ВeekeeCZ

Worked perfectly. Thanks so much!

 

Message 8 of 8
le-tan-phuc
in reply to: ВeekeeCZ

Awesome ! thank you so much !

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report