Fix Lisp Routine to allow it work with Dynamic Block

Fix Lisp Routine to allow it work with Dynamic Block

jtm2020hyo
Collaborator Collaborator
1,297 Views
7 Replies
Message 1 of 8

Fix Lisp Routine to allow it work with Dynamic Block

jtm2020hyo
Collaborator
Collaborator

I Attached a LISP routine (attach 1 named BBL1) create a polyline between selected name block and him nearest block. have 2 options: link selected name block with another selected or link with a block that has a certain layer.

the problem is that this lisp does not work with the blocks that I need to work. (drawing ATTACHED 2 named "test1")

probably is because are Dynamic Block.

anyone can help me?

0 Likes
Accepted solutions (4)
1,298 Views
7 Replies
Replies (7)
Message 2 of 8

dbhunia
Advisor
Advisor
Accepted solution

Hi

 


@jtm2020hyo wrote:

I Attached a LISP routine (attach 1 named BBL1) create a polyline between selected name block and him nearest block. have 2 options: link selected name block with another selected or link with a block that has a certain layer.

the problem is that this lisp does not work with the blocks that I need to work. (drawing ATTACHED 2 named "test1")

probably is because are Dynamic Block.

anyone can help me?


 

There is no attachment in this post.....

 

Another thing if you are using the code from your post......

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-lisp-to-work-only-at-certain-...

 

Then the code is working fine (with Dynamic Block also) in your attached Drawing......


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
Message 3 of 8

jtm2020hyo
Collaborator
Collaborator

I have need a lot of thing to do with this lisp. each post should add a new feature to this lisp. I hope I'm doing it right.



@dbhunia wrote:

Hi

 


@jtm2020hyo wrote:

I Attached a LISP routine (attach 1 named BBL1) create a polyline between selected name block and him nearest block. have 2 options: link selected name block with another selected or link with a block that has a certain layer.

the problem is that this lisp does not work with the blocks that I need to work. (drawing ATTACHED 2 named "test1")

probably is because are Dynamic Block.

anyone can help me?


 

There is no attachment in this post.....

 

Another thing if you are using the code from your post......

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modify-lisp-to-work-only-at-certain-...

 

Then the code is working fine (with Dynamic Block also) in your attached Drawing......


Maybe was a error. In this reply I will attach lisp routine. 

0 Likes
Message 4 of 8

dlanorh
Advisor
Advisor

Try the attached. I've reworked your lisp and added sub-routines to get dynamic block names, filter selection sets and make coordinate lists.

 

I am not one of the robots you're looking for

Message 5 of 8

dbhunia
Advisor
Advisor
Accepted solution

Hi

 

Try this......

 

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
Message 6 of 8

dlanorh
Advisor
Advisor
Accepted solution

Just noticed a glaring comparison error. Attached it corrected lisp.

I am not one of the robots you're looking for

Message 7 of 8

jtm2020hyo
Collaborator
Collaborator

Thanks for their help. both are pretty smart.

@dlanorh @dbhunia

0 Likes
Message 8 of 8

dlanorh
Advisor
Advisor
Accepted solution

Found another error. Updated code attached.

I am not one of the robots you're looking for

0 Likes