modify lisp to link selected blocks with nearest block

modify lisp to link selected blocks with nearest block

jtm2020hyo
Collaborator Collaborator
1,272 Views
4 Replies
Message 1 of 5

modify lisp to link selected blocks with nearest block

jtm2020hyo
Collaborator
Collaborator

First request:

 

Attached lisp request a select a block to create a link with the nearest point. but all block with the same name is automatically linked to their nearest block

what I request is to modify this attached lisp-routine to work just in selected blocks/dynamic-blocks (no all blocks with the same name) 

Second Request:

Attached lisp allow just link with the nearest block with above 180 grades ( since 0 grades to 180 grades relative in each rotation block individually ). 

What I need is to convert that 180 grade allowed to 2 variables or 1 range that can be modifiable for the user. (default since 0 grades to 180 grades)

Image explain better how this lisp work actually
image.png

0 Likes
Accepted solutions (1)
1,273 Views
4 Replies
Replies (4)
Message 2 of 5

jtm2020hyo
Collaborator
Collaborator

@jtm2020hyo wrote:

First request:

 

Attached lisp request a select a block to create a link with the nearest point. but all block with the same name is automatically linked to their nearest block

what I request is to modify this attached lisp-routine to work just in selected blocks/dynamic-blocks (no all blocks with the same name) 

Second Request:

Attached lisp allow just link with the nearest block with above 180 grades ( since 0 grades to 180 grades relative in each rotation block individually ). 

What I need is to convert that 180 grade allowed to 2 variables or 1 range that can be modifiable for the user. (default since 0 grades to 180 grades)

Image explain better how this lisp work actually
image.png


here another attached lisp that works exactly like lisp attached and explained above.



0 Likes
Message 3 of 5

dbhunia
Advisor
Advisor
Accepted solution

Hi

 

For Red marked line ....try Lisp......

 


@jtm2020hyo wrote:

First request:

 

Attached lisp request a select a block to create a link with the nearest point. but all block with the same name is automatically linked to their nearest block

what I request is to modify this attached lisp-routine to work just in selected blocks/dynamic-blocks (no all blocks with the same name) 

Second Request:

Attached lisp allow just link with the nearest block with above 180 grades ( since 0 grades to 180 grades relative in each rotation block individually ). 

What I need is to convert that 180 grade allowed to 2 variables or 1 range that can be modifiable for the user. (default since 0 grades to 180 grades)

Image explain better how this lisp work actually
image.png


 

But for second point what should be the reference point for measuring angle........

 

But show me your workout First .....


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

jtm2020hyo
Collaborator
Collaborator

until now, your lisp-routine work perfectly.

thanks for the help.

the first request was solved.

0 Likes
Message 5 of 5

jtm4890
Explorer
Explorer

@dbhunia wrote:

But for second point what should be the reference point for measuring angle........

 

 


0 sexagesimal degrees as center (for 180° = 90° until -90°)

0 Likes