Message 1 of 7
How does db.LoadMlineStyleFile work?
Not applicable
01-31-2012
12:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody,
I'm pretty new to programming in .net so I really need your help with this problem:
I'm trying to load a MLine Style from a local .mln file
The Code is quiet simple, so maybe I'm forgetting something, but I have no idea what it is.
When I run this code I get an "eFileAccessErr" error?!?
Public Sub MLineStyleCreate(ByVal strName As String)
Dim doc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
Dim dwg As Database = doc.Database
Dim MLineStyleFile = "C:\Program Files\Autodesk\MarelAcadTools 2012\MarelMultiLines\beam.mln"
dwg.LoadMlineStyleFile(strName, MLineStyleFile)
End Sub
Can somebody please help me with this?
Your help will be very appreciated!
Best regards,
Joris