Dear All,
i am working on autocad i am using backed as VBA. Can any one help me is there any method for Draw Arc like First Point, Second Point and Third Point as input
Thanks in Advance
|
Dear All,
i am working on autocad i am using backed as VBA. Can any one help me is there any method for Draw Arc like First Point, Second Point and Third Point as input
Thanks in Advance
The method available for drawing arc is
But using the three points of an arc, you can find all these function parameters.Code:RetVal = object.AddArc(Center, Radius, StartAngle, EndAngle)
This link describes how to find the centre point and radius of a circle (the same logic applies for arc as well) using three points. Once you have these values, then you can use the above method to draw the required arc.
Hi there
I need some help with VBA in autocad
I need to know is there any other ways to draw arc in autocad except center, radius, start angle, end angle method
other ways to find distance between two points using vba except that old method of squareroot co-ordinates
I need an object which give me distance
thanx in advance
Regards
Sunny Dedhia
Hi Sunny,
You just need to prompt the user for the values you want, then you can calculate/convert to the parameters that the function requires. You would use functions from the Utility library, such as GetPoint(), GetReal(), GetAngle(), GetDistance(). You could use GetPoint() to have the user select a center point, start point and end point, or 3 points along the curve. You could use GetReal() to have the user type in a number for the distance or GetDistance() to have then pick two points for the distance. You can also make some assumptions, such as starting from the last point used or StartAngle = 0. So even though the AddArc() function has fixed parameters, you still have a lot of flexibility as to how to get the information you need.
You can also search this forum for AddArc to see if there is some sample code already written. You can also show us what you have so far to provide us with more details as to what you want to do.