« CADopia - Add3DMesh method | Main | CADopia - AddBox method »

Monday, October 29, 2007

CADopia - AddArc method

Creates a new arc object and adds it to the drawing.

Syntax

objectVariable = object.AddArc(Center, Radius, StartAngle, EndAngle)

Where:

     objectVariable is an Arc object;

     object is one of the ModelSpace or PaperSpace collection objects or a Block object;

     Center is a Point object representing the center of the arc;

     Radius is a double-precision variable or number representing the radius of the arc;

     StartAngle and EndAngle are double-precision variables or numbers representing the starting and ending angles of the arc.

AddArc method example

Private Sub AddArcExample()

     ' This example adds an arc to the drawing using the AddArc method.

     Dim icadDoc As Document

     Dim myArc As Arc

     Dim cenPt As Point

     Set icadDoc = ActiveDocument

     Set cenPt = Library.CreatePoint(4, 2)

     'Add the arc to the .dwg

     Set myArc = icadDoc.ModelSpace.AddArc(cenPt, 3, 1, 3)

     ' Display the entity

     myArc.Update

     ThisDocument.ActiveViewport.ZoomExtents

     MsgBox "Arc created w/ center point at 4,2."

End Sub

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment