Message 1 of 17
Not applicable
03-22-2012
10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
Recently I managed to connect to AutoCAD 2012 through vb.net 2010 and send simple commands like this:
Dim acaddoc As AcadDocument = acApp.ActiveDocument Dim pt1(2) As Double Dim pt2(2) As Double pt1(0) = 3 pt1(1) = 6 pt1(2) = 0 pt2(0) = 1 pt2(1) = 5 pt2(2) = 0 acaddoc.ModelSpace.AddLine(pt1, pt2)
I need to use more commands to create a new layer, set a specific layer as active, select a layer's color, select current drawing color,use hatch, select linetype and lineweight. is there a way to perform the previous operations using a code that is similar to the one above?
Solved! Go to Solution.