View Full Version : Draw circle and numbering them clockwise/counterclockwise
noadea
2006-11-15, 03:05 PM
Actually I need help with creating a LISP where can get the point to draw the circle on each tip by offset tip line by certain distance. Please kindly refer to the attached file. As u can see in the first picture, all the lines are in the same layer. But what I want are all lines which highlighted in blue because I want to draw circle on each tip and numbering them clockwise or counterclockwise (as u can see in the picture). Do you have any idea to automate draw the circle on each tip clockwise or counterclockwise by prompt the user to enter the offset distance and circle diameter? The attachment file is just a description to my need, it's not a real drawing. The main propose is the last picture. Any help or other idea would be appreciated. Thank you.
peter
2006-11-16, 03:38 PM
:)
Let me know if you have problems
There are limitations for this routine make sure the U shaped lines are joined polylines.
noadea
2006-11-17, 04:30 AM
:)
Let me know if you have problems
There are limitations for this routine make sure the U shaped lines are joined polylines.
Thanks for your code.
After I run your code, the result shows the circle at each end point of U shape (bubbleit[1].dwg).
Please refer to the attached file (circre1.doc), I want the circle be drawn at each tip of U shape (figure 5) by certain distance from end of tip (figure 3).
peter
2006-11-18, 04:27 PM
Thanks for your code.
After I run your code, the result shows the circle at each end point of U shape (bubbleit[1].dwg).
Please refer to the attached file (circre1.doc), I want the circle be drawn at each tip of U shape (figure 5) by certain distance from end of tip (figure 3).
Just by tweeking that routine you can make it do what you want.
The process is identical, it is just a matter of changing the points using trig.
Why don't you play with it a little, and if you can't do it then let me know and I will change it.
Peter
noadea
2006-11-20, 03:13 PM
Thank you fixo...
I just try your code to my other drawing but it can't work properly.
It only can work on the drawing that I've attached before.
How if my drawing is like this attached file below? (please refer to ex1.dwg)
Thanks for advance.
Sorry, I am almost like a sleeping dog now,
my local time is 02:20
See you tomorrow, hope I could to help
~'J'~
CAB2k
2006-11-21, 06:50 AM
You may be able to use this routine.
Select the center, Select the the lines to have the bubbles added to.
Select the first end.
Then CW or CCW & the bubbles are added to the outside points & the lines trimmed.
You will need to adjust the text height & Bubble size.
noadea
2006-11-22, 03:47 AM
You may be able to use this routine.
Select the center, Select the the lines to have the bubbles added to.
Select the first end.
Then CW or CCW & the bubbles are added to the outside points & the lines trimmed.
You will need to adjust the text height & Bubble size.
CAB, I want it be like in the attached file below. The circle on each tip by any offset distance from end of tip.
noadea
2006-11-24, 11:58 AM
Any help would be much encouraged.
I woud be most thankful if anyone could assist.
Thanks for advance.
I continue to search for the solution of this problem,
but unfortunately, till now has not success
I shall work this way further... don't hurry me up please :)
~'J'~
Here is my second attempt...
This draw what you want but little inaccuracy as you will be to see
Tested on your ex2.dwg
Still working further
But maybe you could be to fix it yourself
~'J'~
noadea
2006-11-27, 02:53 AM
Thank you very much, Fixo...
Very much appreciated.
Thank you very much, Fixo...
Very much appreciated.
But this driving me mad, I can't fix it at this time :(
By my intuition there is something wrong with calculation of
offset distance there
I'll work with it further
~'J'~
noadea
2006-11-29, 02:23 PM
I've tested on ex2.dwg but got error.
Can run it until the program prompted to enter bubble radius.
After entering the bubble radius, the error appear like below:
Error: too many argumentsundo Enter the number of operations to undo or
[Auto/Control/BEgin/End/Mark/Back] <1>: e
How to fix this kind of error?
I've tested on ex2.dwg but got error.
Can run it until the program prompted to enter bubble radius.
After entering the bubble radius, the error appear like below:
Error: too many argumentsundo Enter the number of operations to undo or
[Auto/Control/BEgin/End/Mark/Back] <1>: e
How to fix this kind of error?
I tested it nowaday several times, but have not received the error message
like this
Another problem I could not to fix a deviation from a distinct
points of circles and texts locations till this moment yet and
very sorrowed about
If I'll solved this task completely I'll send you private message
~'J'~
noadea
2006-11-30, 03:15 AM
Is that because of I've selected the detail wrongly?
Anyway thank you so much Fixo...
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.