Jump to content

Line type load ok in 2011 not in 2012


BIGAL

Recommended Posts

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 by BIGAL
VBA code
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...