BIGAL Posted May 10, 2011 Share Posted May 10, 2011 (edited) 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 Edited May 11, 2011 by BIGAL VBA code Quote Link to comment Share on other sites More sharing options...
SLW210 Posted May 10, 2011 Share Posted May 10, 2011 What are you trying to do? If this is VBA, you may need some add-on module. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted May 10, 2011 Author Share Posted May 10, 2011 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. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted May 16, 2011 Author Share Posted May 16, 2011 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 Quote Link to comment Share on other sites More sharing options...
SLW210 Posted May 16, 2011 Share Posted May 16, 2011 Thanks for posting. I haven't had a chance to look into it and basically had forgot about this thread. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted May 18, 2011 Author Share Posted May 18, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.