Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro for Sprocket
#13
You will have to use dcCreateCircleEx (cx, cy, xa, ya, xb, yb, hrad, wrad, angle, arrow)

This function creates a circle, arc, ellipse, or elliptical arc. cx and cy are the center,

xa/ya and xb/yb are the endpoints of an arc. If you are drawing a complete circle
(i.e. not an arc) then xa/ya and xb/yb should be the same point. If you are drawing
an arc it is drawn counterclockwise from xa/ya to xb/yb. hrad is the height radius,
and wrad is the width radius. If drawing a circle (i.e. not an ellipse) set hrad and
wrad to the same value. angle is the angle of the ellipse in degrees (it is ignored
for circles). arrow indicates which end of the arc segment should get an arrow
head. 1 is end A, and 2 is end B. The arrow value is only used if the line type is
set to an arrow line.

Return Value: True if successful, otherwise False.

Example:
Sub Main
dcCreateCircleEx 0, 0, 1.41, 1.41, 1.41, 1.41, 1, 2, 45, 0
End Sub 

P.S. I noticed your the endpoints of your tangent lines are a little bit different than the endpoints that DeltaCad makes.
If you set the line and circle thickness to thin and then go into Options/Drawing Data... and set the Thin Line thickness to a smaller number like .005 you can see the mismatch.
Reply


Messages In This Thread
Macro for Sprocket - quarkqq - 09-07-2020, 11:31 AM
RE: Macro for Sprocket - AlwMVMO - 09-07-2020, 06:15 PM
RE: Macro for Sprocket - quarkqq - 09-08-2020, 08:42 AM
RE: Macro for Sprocket - AlwMVMO - 09-08-2020, 11:39 PM
RE: Macro for Sprocket - quarkqq - 09-09-2020, 09:08 AM
RE: Macro for Sprocket - AlwMVMO - 09-10-2020, 10:59 AM
RE: Macro for Sprocket - williamj - 09-10-2020, 02:52 PM
RE: Macro for Sprocket - quarkqq - 09-28-2020, 01:52 PM
RE: Macro for Sprocket - williamj - 09-28-2020, 05:20 PM
RE: Macro for Sprocket - AlwMVMO - 09-29-2020, 12:59 AM
RE: Macro for Sprocket - williamj - 09-29-2020, 07:44 AM
RE: Macro for Sprocket - quarkqq - 10-01-2020, 02:28 PM
RE: Macro for Sprocket - AlwMVMO - 10-02-2020, 12:16 AM
RE: Macro for Sprocket - quarkqq - 10-02-2020, 10:23 AM
RE: Macro for Sprocket - williamj - 10-02-2020, 12:09 PM
RE: Macro for Sprocket - AlwMVMO - 10-03-2020, 02:18 AM
RE: Macro for Sprocket - williamj - 10-03-2020, 06:38 AM
RE: Macro for Sprocket - quarkqq - 10-03-2020, 12:44 PM
RE: Macro for Sprocket - AlwMVMO - 10-03-2020, 11:21 PM
RE: Macro for Sprocket - quarkqq - 10-05-2020, 11:13 AM
RE: Macro for Sprocket - AlwMVMO - 10-05-2020, 09:55 PM
RE: Macro for Sprocket - quarkqq - 10-06-2020, 12:00 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)