Circle width

Circle width

Anonymous
Not applicable
921 Views
8 Replies
Message 1 of 9

Circle width

Anonymous
Not applicable
Hello,

When I draw a circle, I would like to draw it with a polyline.
My objective is to be able to change the width of the line of the circle. Do you know what I mean ?

thanks
0 Likes
922 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Its all in the bulge
Dim P As AcadLWPolyline
Dim Pts(3) As Double
Pts(0) = 0: Pts(1) = 0
Pts(2) = 0: Pts(3) = 1
Set P = ThisDrawing.ModelSpace.AddLightWeightPolyline(Pts)
P.Closed = True
P.SetBulge 0, 1
P.SetBulge 1, 1
P.ConstantWidth = 0.1
0 Likes
Message 3 of 9

fxcastil
Advocate
Advocate
Bryco,
We are all learning more AutoCAD from your posts.

Thanks,
Fred Castillo
0 Likes
Message 4 of 9

Anonymous
Not applicable
Isn't that what the donut command is for?

wrote in message news:5050939@discussion.autodesk.com...
Hello,

When I draw a circle, I would like to draw it with a polyline.
My objective is to be able to change the width of the line of the circle. Do
you know what I mean ?

thanks
0 Likes
Message 5 of 9

Anonymous
Not applicable
Yes, but this is a VBA forum
0 Likes
Message 6 of 9

Anonymous
Not applicable
Can we control a Donut with VBA ? Message was edited by: mfauxock
0 Likes
Message 7 of 9

Anonymous
Not applicable
Yes we ca with .Addtorus !
0 Likes
Message 8 of 9

Anonymous
Not applicable
Autocad VBA does not have such an object as Donut. In autocad a donut is created via polylines.

AddTorus on the other hand is a 3D solid object. If you want to create a Donut via VBA then use Bryco’s code.

-J
0 Likes
Message 9 of 9

Anonymous
Not applicable
yes you're right
0 Likes