« CADopia - AddMtext method | Main | CADopia - AddPointEntity method »

Thursday, November 29, 2007

CADopia - AddPointEntity method

Creates a point entity and adds it to the drawing.

Syntax

objectVariable = object.AddPointEntity(Point)

Where:

     objectVariable is a PointEntity object;

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

     Point is a Point object representing the location to insert the PointEntity.

AddPointEntity method example

Private Sub AddPointEntityExample()

' This example adds a point entity to the drawing using the AddPointEntity ' method.

     Dim icadDoc As CADopia.Document

     Dim myPoint As CADopia.Point

     Dim myPtEnt As CADopia.PointEntity

     Set icadDoc = ActiveDocument

     Set myPoint = Library.CreatePoint(4, 2)

     Set myPtEnt = icadDoc.ModelSpace.AddPointEntity(myPoint)

     myPtEnt.Update

     MsgBox "Point created 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