Message 1 of 2
How to grouping lines to a block?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Iwant to create a square with autocad and grouping them to block. OLANSGZ
Call CreateLine(p1, p2) 'creating top line Call CreateLine(p2, p3) 'creating right line Call CreateLine(p3, p4) 'creating bottom line Call CreateLine(p4, p1) 'creating left line Function CreateLine(firstPoint, secondPoint) Dim StartPoint(0 To 2) As Double Dim EndPoint(0 To 2) As Double StartPoint(0) = firstPoint(0) StartPoint(1) = firstPoint(1) StartPoint(2) = 0 EndPoint(0) = secondPoint(0) EndPoint(1) = secondPoint(1) EndPoint(2) = 0 With ThisDrawing.ModelSpace .AddLine StartPoint, EndPoint .Item(.Count - 1).Update End With End Function
now I want grouping this square to a block with a custom name with VBA and AutoCAD. How can I do?