What are you trying to do? If this is VBA, you may need some add-on module.




Registered forum members do not see this ad.
The following works ok in VBA all versions up to 2011 but will not work with 2012 checked linetype does not exist hence load.
Any ideas ?
Sub test()
ThisDrawing.Linetypes.Load "FENCE", "s:\autodesk\supportfiles\custom.lin"
ThisDrawing.Linetypes.Load "DASHED2", "s:\autodesk\supportfiles\ACAD.lin"
End Sub
Last edited by BIGAL; 11th May 2011 at 03:42 am. Reason: VBA code
What are you trying to do? If this is VBA, you may need some add-on module.
“A narrow mind and a fat head invariably come on the same person” Zig Zigler
![]()




This is just the relevant lines out of larger vba code it will work as a test sub, again works perfect in 2011.
In 2012 rem'ed the line load code and the total sub works ok the VBA enabler is loaded.




For any one interested the following works the linetype files are in a pre defined support path location.
Sub test()
ThisDrawing.Linetypes.Load "FENCE", "custom.lin"
ThisDrawing.Linetypes.Load "DASHED2", "ACAD.lin"
End Sub
Thanks for posting. I haven't had a chance to look into it and basically had forgot about this thread.![]()
“A narrow mind and a fat head invariably come on the same person” Zig Zigler
![]()




Registered forum members do not see this ad.
The bigger question though is what else have I done and suddenly will not work with 2012 guess I will find out, it must be in the vba enabler. I may post to Autodesk as a bug.
Bookmarks