Jump to content
svippala

Align command in lisp format...

Recommended Posts

svippala

Hi,

 

we are many objects in once place like( Circles, Lines, Blocks, text, etc) we need move and align to another location we found in that location we have more than 4 source points we have identity. we need aling command in lisp formate for 4 or more points. Can you plz help us for thous align command using with 4 or more source points and destination points...to align at a time

 

 

thanks

sudha

Share this post


Link to post
Share on other sites
1958

Try it. Hopefully with the Russian language to the desired you will be able to translate.

helmert.lsp

Share this post


Link to post
Share on other sites
svippala

unable to translate the cod from Russian language to English. unable get this command how to use..

 

 

see the attachment sample need to align 1 to 2 or 2 to 1 using with 4 point

Sampleexample.jpg

Edited by svippala

Share this post


Link to post
Share on other sites
Grrr

Hi,

See this thread, and try Stefan's code:

http://www.cadtutor.net/forum/showthread.php?85946-Align-objects-with-2-clicks/page3

In line 81 change "_n" to "_y" so the objects would be scaled.

 

Usage example:

1. Select objects to align (for example select yellow ones)

2. Pick a source line (for example select the shorter side of the yellow rectangle)

3. Pick a destination line (select the shorter side of the cyan rectangle)

 

Note: be careful what side of the line or pline's segment you pick for source and destination line

For example left side of the source segment to the left of destination segment.

Try it few times and you'll get used to it.

 

HTH

Share this post


Link to post
Share on other sites
eldon
....see the attachment sample need to align 1 to 2 or 2 to 1 using with 4 point

 

I can't understand why you would need to align using 4 points. I would use only two. It seems to be a matter of scaling and rotating only.

 

Perhaps if you could attach a sample drawing file, I would be able to understand your working method.

Share this post


Link to post
Share on other sites
svippala
I can't understand why you would need to align using 4 points. I would use only two. It seems to be a matter of scaling and rotating only.

 

Perhaps if you could attach a sample drawing file, I would be able to understand your working method.

 

 

 

i am attached here only for sample image we have data files to align.if we are using 2 pints unable to fit the scale and rotation angle correct so we need 4 pints align. lisp plz help me.

Share this post


Link to post
Share on other sites
BIGAL

Eldon the lisp link above refers to the "Helmert transformation" which is a rubber map procedure rather than a simple scale about 2 points its used in GIS all the time to make objects fit in a certain area. Think of it as a 4 sided piece of stretchable material it allows for more than 4 points. Some objects move and stretch/shrink more than others.

 

https://en.wikipedia.org/wiki/Helmert_transformation

Share this post


Link to post
Share on other sites
eldon

My comment would be that circles would not remain circles when using any rubberisation procedure on the OP's original image. It looked to be a straight rotation and scaling in 2D, i.e. the ALIGN command could be used.

 

Appearances can be deceiving. But it is not clear to me what the OP requires.

Share this post


Link to post
Share on other sites
BIGAL

Your right its not clear, what should happen is the circles rescale but by how much if x & y is different ratio.

Share this post


Link to post
Share on other sites
svippala

its not align properly.

Share this post


Link to post
Share on other sites
eldon

What is it not aligning properly?

 

Without a drawing file showing details of what you are trying to align with what, we can only guess.

Share this post


Link to post
Share on other sites
svippala
Align.dwgplz find the attache dwg file for reference files

Share this post


Link to post
Share on other sites
eldon

You still do not say what you want to align with what, and how you need 4 points to align whatever.

WhatAligns.jpg

Share this post


Link to post
Share on other sites
svippala

as per text identification Number 1 (Terminal) to number 1 (pole) like 1 to 1 , 2 to 2 etc. same as like horizontal lines also there in some drawing. we need to modify as per poles lines.

Share this post


Link to post
Share on other sites
BIGAL

Sucked me into looking at dwg makes no sense at all. Need more information a before a after dwg. The distances between 1-2-3-4 in both plan and section etc are all different so no idea.

Share this post


Link to post
Share on other sites
eldon
as per text identification Number 1 (Terminal) to number 1 (pole) like 1 to 1 , 2 to 2 etc. same as like horizontal lines also there in some drawing. we need to modify as per poles lines.

 

In order for us to help you (and we are trying very hard), please imagine that we do not have the same technical knowledge about Terminals and poles as you do. We are just concerned with putting lines in the correct place in the drawing.

So it would be very helpful if you could show a picture or drawing that shows what you have tried to do, and the reason for the failure.

In the picture (now with points removed), I have put the block "bb" in various attitudes, scaled and rotated, at the numbered places. Have I got it right in any place?

WhatAligns2.PNG

Share this post


Link to post
Share on other sites
svippala
Untitled.pngPlz find the attachment the file after align the data cables and terminals like as per jpg. Some data also available in poles and terminals both are link with pole number.

Share this post


Link to post
Share on other sites
eldon

I am afraid that I still do not see your problem. There is nothing to align. ALIGN is about rotating and scaling. Perhaps ALIGN is not the command you want. The commands Rotate and Move would be more appropriate, for the separate elements.

 

Perhaps you want one button to push that does all the work.

Share this post


Link to post
Share on other sites
svippala

any other solution???

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...