xadow Posted May 8, 2014 Posted May 8, 2014 I'd like to know how can i move all circles drawn on the same line 1 (the centre of the circles to be on the same line) Quote
ReMark Posted May 8, 2014 Posted May 8, 2014 You'll have to be a littler clearer as to what you want the end result to look like. Are all these circles scattered throughout the drawing? Will the circles be moved to the same point on the line or different points? Quote
xadow Posted May 8, 2014 Author Posted May 8, 2014 lets say i draw 3 random circles and i want them to be on the same line as in i chose 1 point which is paralel with OX and move all circles with the centre on that line Also i kinda forgot to say i need it to be done in lisp as a code here is those 3 circles a created (defun C:naghi( / centru1 raza1 centru2 raza2 centru3 raza3 nr) (setq centru1 (getpoint "\n Centru cercului: ") raza1 (getpoint "\n Raza cercului: ") ) ;citirea de la tastatura a punctelor necesare pentru a crea un Cerc (command "CIRCLE" centru1 raza1) (setq centru2 (getpoint "\n Centru cercului: ") raza2 (getpoint "\n Raza cercului: ") ) ;citirea de la tastatura a punctelor necesare pentru a crea un Cerc (command "CIRCLE" centru2 raza2) (setq centru3 (getpoint "\n Centru cercului: ") raza3 (getpoint "\n Raza cercului: ") ) ;citirea de la tastatura a punctelor necesare pentru a crea un Cerc (command "CIRCLE" centru3 raza3) ) i want them to be moved on the same line wich is paralel with OX Quote
ReMark Posted May 8, 2014 Posted May 8, 2014 Far left: line with scattered circles. Middle: all circles moved to line (center falls on line). Circles moved perpendicular to line. Position left-right not changed. Far right: all circles moved to midpoint of line. Now, what exactly do you want to do? All circles were moved via the Center osnap. Quote
xadow Posted May 8, 2014 Author Posted May 8, 2014 i dont want them to have same centre just the centre of each of them to be on same line the midle picture Quote
ReMark Posted May 8, 2014 Posted May 8, 2014 That's what I was thinking too but I needed you to clarify it for us. Now, will it always be just three circles? Could there be more? It sounds like you need a lisp program that would dynamically align the circles with the line. Quote
xadow Posted May 8, 2014 Author Posted May 8, 2014 well first i was thinking to make it so i can chose how many circle can be and then move them but then i realized that i would have to save them in a list and then run thrugh the list for each circle and i dont know how to make it. thats why i made only 3 circles with the centre of each in a diferent variable Quote
ReMark Posted May 8, 2014 Posted May 8, 2014 Three circles, thirty circles, three hundred circles. What difference would it really make? Quote
xadow Posted May 8, 2014 Author Posted May 8, 2014 well if i would make 300 circles and write the code for each and every1 of them i would need 1 year. I though it has to be made with "while" and put all circles in a list Quote
xadow Posted May 8, 2014 Author Posted May 8, 2014 Anyhow i would like to be only those 3 circles to be easy Quote
ReMark Posted May 8, 2014 Posted May 8, 2014 I don't believe you would have to write code for each and every circle. That's my point. It shouldn't matter if you pick one object to move or one hundred. Aren't you just building a selection set? Quote
xadow Posted May 8, 2014 Author Posted May 8, 2014 right my mistake. i want all circles to be moved on the same line Quote
ReMark Posted May 8, 2014 Posted May 8, 2014 One of the lisp gurus should be able to point you in the right direction regarding your code. Be patient. Quote
SAFeSTeR Posted May 9, 2014 Posted May 9, 2014 If the line is horizontal or vertical then all you need to do is select all the circles and change either their X or Y co-ordinate to that of the line. Quote
dbroada Posted May 9, 2014 Posted May 9, 2014 If the line is horizontal or vertical then all you need to do is select all the circles and change either their X or Y co-ordinate to that of the line. that's how I do it, using the properties palette. 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.