Author Topic: Linetype load not working in 2012 works 2011  (Read 3107 times)

0 Members and 1 Guest are viewing this topic.

BIGAL

  • Swamp Rat
  • Posts: 1398
  • 40 + years of using Autocad
Linetype load not working in 2012 works 2011
« 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
A man who never made a mistake never made anything

RickyD302

  • Newt
  • Posts: 69
Re: Linetype load not working in 2012 works 2011
« Reply #1 on: May 14, 2011, 02:55:35 PM »
is s: a mapped drive...maybe use full path
Growing OLD is mandatory; Growing UP is optional

BIGAL

  • Swamp Rat
  • Posts: 1398
  • 40 + years of using Autocad
Re: Linetype load not working in 2012 works 2011
« Reply #2 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"


A man who never made a mistake never made anything