Message 1 of 2

Not applicable
11-02-2017
05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is it possible to create a new object by using Autocad VBA just like a line or circle object?
I want to create an object named, let's say A4. It will have the points, name, area properties.
In autocad It will draw the object and write the name inside the object as a text, and I want to select this object.
I created a class module A4 but does not know how to continue.
Option Explicit
Public Name As String
Public No As Long
Public Area As Double
Public plineObj As AcadPolyline
....
Sub A()
Dim P As A4' Declare.
Set P= New A4
P.No = 1
P.Draw
ZoomAll
End Sub
Solved! Go to Solution.