The problem is the document has a 0.0 line thickness. The below sub will put a thickness in the lines, polylines, and (omg) trace (yes it was some old drawings). The default is 0.003 this will make the lines darker.
Private Sub AcadDocument_Activate()
Dim entry As AcadObject
Dim MyLine As AcadLine
Dim MyTrace As AcadTrace
Dim MyPoly As AcadPolyline
Dim MyThick As Double
Dim MyLineType As ACAD_LTYPE
Dim MyPoints(0 To 5) As Double
Dim CordPoints
MyThick = 0.003
For Each entry In ThisDrawing.ModelSpace
'MsgBox entry.ObjectName
If TypeOf entry Is AcadLine Then
Set MyLine = entry
MyLineType = MyLine.Linetype
MyPoints(0) = MyLine.EndPoint(0)
MyPoints(1) = MyLine.EndPoint(1)
MyPoints(2) = 0
MyPoints(3) = MyLine.StartPoint(0)
MyPoints(4) = MyLine.StartPoint(1)
MyPoints(5) = 0
Set MyPoly = ThisDrawing.ModelSpace.Add
MyPoly.ConstantWidth = MyThick
MyPoly.Linetype = MyLineType
MyPoly.Update
MyLine.Delete
'Set MyLine = Nothing
'Set MyPoly = Nothing
ElseIf TypeOf entry Is AcadTrace Then
Set MyTrace = entry
CordPoints = MyTrace.Coordinate(0)
MyPoints(0) = CordPoints(0)
MyPoints(1) = CordPoints(1)
MyPoints(2) = CordPoints(2)
CordPoints = MyTrace.Coordinate(3)
MyPoints(3) = CordPoints(0)
MyPoints(4) = CordPoints(1)
MyPoints(5) = CordPoints(2)
Set MyPoly = ThisDrawing.ModelSpace.Add
MyPoly.ConstantWidth = MyThick
MyPoly.Update
MyTrace.Delete
'Set MyTrace = Nothing
'Set MyPoly = Nothing
End If
Next entry
Set entry = Nothing
Set MyTrace = Nothing
Set MyPoly = Nothing
Set MyLine = Nothing
End Sub
HTH
dragontooth
Main Topics
Browse All Topics





by: dhsindyPosted on 2006-07-25 at 03:47:38ID: 17174621
Try going back to your original drawing and change the line work to polylines /lwpolylines and give them the desired lineweight width using the PEDIT command and also you can fill in areas with solid hatch. Then, after you are satisfied with the image in AutoCAD export it to the WMF format file.
I don't know if you can change it once it is in the Word Document like a linked XLS file for example. I don't have the 2000i program available anymore to test but this is what I used to do if I remember correctly.
Hope this helps or gives you some ideas.