Jump to content

Recommended Posts

Posted

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)

Posted

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?

Posted

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

Posted

MoveCircles.jpg

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.

Posted

i dont want them to have same centre just the centre of each of them to be on same line

 

the midle picture

Posted

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.

Posted

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

Posted

Three circles, thirty circles, three hundred circles. What difference would it really make?

Posted

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

Posted

Anyhow i would like to be only those 3 circles to be easy

Posted

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?

Posted

right my mistake. i want all circles to be moved on the same line

Posted

One of the lisp gurus should be able to point you in the right direction regarding your code. Be patient.

Posted

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.

Posted
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.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...