Adjustment of polygons in circle

Adjustment of polygons in circle

Anonymous
Not applicable
589 Views
6 Replies
Message 1 of 7

Adjustment of polygons in circle

Anonymous
Not applicable
The factors that i want to control or that i fill to dialog box.
1. Diameter of circle.
2. Diameter of polygon (inscribed in circle) that has six sides.
3. Maximum no. of polygons in given circle without touching the circle boundary.
Give the lisp or vb project for this.
Dialog box is more suitable than command line prompt.
0 Likes
590 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Is there a question in there somewhere? This is a
teaching/learning group not a

fast food window...

 

Notice your earlier thread went unanswered... If
you want to hire a coder just

ask and someone will help you.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
The
factors that i want to control or that i fill to dialog box. 1. Diameter of
circle. 2. Diameter of polygon (inscribed in circle) that has six sides. 3.
Maximum no. of polygons in given circle without touching the circle boundary.
Give the lisp or vb project for this. Dialog box is more suitable than command
line prompt.
0 Likes
Message 3 of 7

Anonymous
Not applicable
I liked your response! It's good to wake up with a chuckle. Have a good day Paul.

Post what code you have come up with amrt, so that people may help you debug it.
0 Likes
Message 4 of 7

Anonymous
Not applicable

I want the mythical group he is looking for...
bunch of pro sitting around waiting to write code as I demand it
...:)


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
liked your response! It's good to wake up with a chuckle. Have a good day
Paul. Post what code you have come up with amrt, so that people may help you
debug it.
0 Likes
Message 5 of 7

Anonymous
Not applicable
How i can create a command in which i give circle dia & polygon dia?
Than it automatically adjust the maximum no. of polygons without touching the circle boundary.
Polygons shpuld be adjusted in the way i given in image.
Is it possible?
0 Likes
Message 6 of 7

Anonymous
Not applicable
Are you wanting to draw the image or just determine the maximum number of hexagons?

In either case, what part of the exercise is giving you trouble?
0 Likes
Message 7 of 7

Anonymous
Not applicable
>>How i can create a command in which i give circle dia & polygon dia?

in autocad, type vbaide, insert userform, insert a couple textboxes for circle dia. and polygon dia. and a couple command buttons, insert labels, and click on each 'control' that you just inserted and view properties window, name and format as desired.

The command buttons might want to be ok and cancel; for cancel button, cancel property s/be true.

Double click ok button. This is where your program 'guts' can go.
examples that you will need to look at...
{code}
'circle example

Dim circleObj As AcadCircle
Dim centerPoint(0 To 2) As Double
Dim radius As Double

' Define the circle
centerPoint(0) = 0#: centerPoint(1) = 0#: centerPoint(2) = 0#
radius = 5# 'change this to CDBL(TEXTBOXVALUEFORCIRCLEDIA) textbox value for circle dia

' Create the Circle object in model space
Set circleObj = ThisDrawing.ModelSpace.AddCircle(centerPoint, radius)
ZoomAll
{code}

what i might do is either compute the max no of polygons and points (blech), or draw circles and count intersections points, and connect the intersections with polylines, and adjust as necessary (blech).

>>Than it automatically adjust the maximum no. of polygons without touching the circle boundary.
>>Polygons shpuld be adjusted in the way i given in image.
>>Is it possible?

Yes.
0 Likes