svippala Posted April 29, 2016 Posted April 29, 2016 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 Quote
1958 Posted April 30, 2016 Posted April 30, 2016 Try it. Hopefully with the Russian language to the desired you will be able to translate. helmert.lsp Quote
svippala Posted April 30, 2016 Author Posted April 30, 2016 (edited) 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 Edited April 30, 2016 by svippala Quote
Grrr Posted April 30, 2016 Posted April 30, 2016 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 Quote
1958 Posted April 30, 2016 Posted April 30, 2016 I tried to translate into English using https://translate.google.com Sorry for the quality of the translation. helmert_en.lsp 123.dwg Quote
eldon Posted April 30, 2016 Posted April 30, 2016 ....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. Quote
svippala Posted April 30, 2016 Author Posted April 30, 2016 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. Quote
BIGAL Posted April 30, 2016 Posted April 30, 2016 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 Quote
eldon Posted May 1, 2016 Posted May 1, 2016 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. Quote
BIGAL Posted May 2, 2016 Posted May 2, 2016 Your right its not clear, what should happen is the circles rescale but by how much if x & y is different ratio. Quote
eldon Posted May 5, 2016 Posted May 5, 2016 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. Quote
svippala Posted May 17, 2016 Author Posted May 17, 2016 Align.dwgplz find the attache dwg file for reference files Quote
eldon Posted May 18, 2016 Posted May 18, 2016 You still do not say what you want to align with what, and how you need 4 points to align whatever. Quote
svippala Posted May 19, 2016 Author Posted May 19, 2016 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. Quote
BIGAL Posted May 19, 2016 Posted May 19, 2016 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. Quote
eldon Posted May 19, 2016 Posted May 19, 2016 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? Quote
svippala Posted May 19, 2016 Author Posted May 19, 2016 Plz 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. Quote
eldon Posted May 19, 2016 Posted May 19, 2016 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. Quote
Recommended Posts
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.