TheSwamp

Code Red => VB(A) => Topic started by: BIGAL on May 12, 2011, 11:19:10 PM

Title: Linetype load not working in 2012 works 2011
Post by: BIGAL on May 12, 2011, 11:19:10 PM
The following line works ok in VBA all versions up to 2011 but will not work with 2012 checked linetype does not exist hence load. VBA enabler loaded etc remove this line and rest of code works in 2012.

Any ideas ?

for testing
Sub test()
ThisDrawing.Linetypes.Load "DASHED2", "s:\autodesk\supportfiles\ACAD.lin"
End Sub
Title: Re: Linetype load not working in 2012 works 2011
Post by: RickyD302 on May 14, 2011, 02:55:35 PM
is s: a mapped drive...maybe use full path
Title: Re: Linetype load not working in 2012 works 2011
Post by: BIGAL on May 15, 2011, 10:30:50 PM
After a bit of a trial this works but linetype must be located in search paths.

ThisDrawing.Linetypes.Load "DASHED2", "ACAD.lin"