Mekanikles
Mechanical
- Jan 21, 2014
- 20
Hi,
I'm trying to do a very simple extrusion of two circles.
What am i doing wrong?
Dim circle21, circle22 As AcadCircle
Dim cylinder21, cylinder22 As Acad3DSolid
pt1 = ThisDrawing.Utility.GetPoint(, "Pick insert point:")
D1 = Val(TextBox1.Text)
t1 = Val(TextBox2.Text)
l1 = Val(TextBox3.Text)
D2 = Val(TextBox4.Text)
Set circle21 = ThisDrawing.ModelSpace.AddCircle(pt1, D2 / 2)
Set circle22 = ThisDrawing.ModelSpace.AddCircle(pt1, D2 / 2 - t1)
Set cylinder21 = ThisDrawing.ModelSpace.AddExtrudedSolid(circle21, l1 + D1, 0)
Set cylinder22 = ThisDrawing.ModelSpace.AddExtrudedSolid(circle22, l1 + D1, 0)
Thanks in advance!
"If you're not part of the solution, you're part of the problem" - John McClane,Die hard
I'm trying to do a very simple extrusion of two circles.
What am i doing wrong?
Dim circle21, circle22 As AcadCircle
Dim cylinder21, cylinder22 As Acad3DSolid
pt1 = ThisDrawing.Utility.GetPoint(, "Pick insert point:")
D1 = Val(TextBox1.Text)
t1 = Val(TextBox2.Text)
l1 = Val(TextBox3.Text)
D2 = Val(TextBox4.Text)
Set circle21 = ThisDrawing.ModelSpace.AddCircle(pt1, D2 / 2)
Set circle22 = ThisDrawing.ModelSpace.AddCircle(pt1, D2 / 2 - t1)
Set cylinder21 = ThisDrawing.ModelSpace.AddExtrudedSolid(circle21, l1 + D1, 0)
Set cylinder22 = ThisDrawing.ModelSpace.AddExtrudedSolid(circle22, l1 + D1, 0)
Thanks in advance!
"If you're not part of the solution, you're part of the problem" - John McClane,Die hard