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

move and rotate a block for referenced nearest polyline or line etc

4 REPLIES 4
Reply
Message 1 of 5
ahmet471985
1423 Views, 4 Replies

move and rotate a block for referenced nearest polyline or line etc

Hello i need an autolisp routine for these:

I want select a block and my autolisp code move my block to near (about 5 unit away from it) nearest the polyline (or line or block etc.) and rotate my block with referenced by the polyline. 

I will add a drawing please look at it.

 

4 REPLIES 4
Message 2 of 5
mid-awe
in reply to: ahmet471985

I would like to suggest that you take a look at:

 

ObjectAlign

 

A great program from Lee Mack.

Message 3 of 5
ahmet471985
in reply to: mid-awe

Really i wanted a program like it.but i must costumize this program to my request.i want to set offset value.and auto selecting curve by offset value.
Thanks i will try.
Message 4 of 5
mid-awe
in reply to: ahmet471985

The offset is controlled with the global variable:

oa|off

and is found in the line:

(IF (NULL oa|off) (SETQ oa|off 0.0))

You can preset that variable to call the program with a default offset:

(IF (NULL oa|off) (SETQ oa|off 5.0))

Hopefully that will help. "ObjectAlign" is a very advanced program and I have done little to understand how it works.
Message 5 of 5
m_rogoff
in reply to: ahmet471985

using Otrack, entering distance / Osnap Perp to line is much easier

Lee's program looks really useful

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

Post to forums  

Autodesk Design & Make Report

”Boost