<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How does db.LoadMlineStyleFile work? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3933960#M57430</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into the same error message and&amp;nbsp; ADN support found the cause. It seems that filename and stylename needs to be the same. Basically one style per mln file. I just checked the AC docs and it seems you can have more than one style in a mln file. But loading a style from a file&amp;nbsp;containing &amp;nbsp;multiple styles didn't work for me (AC map 2013 sp1). Maybe this information&amp;nbsp; helps someone else as well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2013 15:13:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-23T15:13:40Z</dc:date>
    <item>
      <title>How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3311941#M57424</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new to programming in .net so I really need your help with this problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to load a MLine Style from a local .mln file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Code is quiet simple, so maybe I'm forgetting something, but I have no idea what it is.&lt;/P&gt;&lt;P&gt;When I run this code I get an "eFileAccessErr" error?!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Public Sub MLineStyleCreate(ByVal strName As String)&lt;/P&gt;&lt;P&gt;Dim doc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument&lt;/P&gt;&lt;P&gt;Dim dwg As Database = doc.Database&lt;/P&gt;&lt;P&gt;Dim MLineStyleFile = "C:\Program Files\Autodesk\MarelAcadTools 2012\MarelMultiLines\beam.mln"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dwg.LoadMlineStyleFile(strName, MLineStyleFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can somebody please help me with this?&lt;/P&gt;&lt;P&gt;Your help will be very appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joris&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 08:29:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3311941#M57424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-31T08:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3312011#M57425</link>
      <description>&lt;P&gt;Maybe this topic can help you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/NET/Error-loading-a-Multiline-style/td-p/1678971"&gt;http://forums.autodesk.com/t5/NET/Error-loading-a-Multiline-style/td-p/1678971&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 09:50:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3312011#M57425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-31T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3312047#M57426</link>
      <description>&lt;P&gt;Hi Kob4lt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. I have added the wrapper to my code and updated it for AutoCAD 2012. The error message is now gone, BUT the MLINESTYLE still isn't loaded from the .mln file... AARGH, this really gives me a headache.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 11:09:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3312047#M57426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-31T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3312085#M57427</link>
      <description>&lt;P&gt;I was mistaken. The error still isn't gone. I just missed it, but it now appears on the autocad command line...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I still have a FileAccessErr Error. I have even moved the .mln file to "my documents" but still the same error appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong here???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edited by&lt;BR /&gt;Discussion_Admin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2012 11:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3312085#M57427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-01T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3313247#M57428</link>
      <description>&lt;P&gt;Maybe this can give you hint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Returns&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Acad::eFileAccessErr&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if the path or file name specified could not be opened for write"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have persmission to write to file? I know that you are only loading file, maybe autocad needs to write something in it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2012 01:43:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3313247#M57428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-01T01:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3315427#M57429</link>
      <description>&lt;P&gt;Yes, I have full permission to the file. I can read and write it. If I use the command MLSTYLE in autocad i can load multilinestyles from that file, so to me it doesn't seem like autocad has a problem with the file...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2012 12:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3315427#M57429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-02T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How does db.LoadMlineStyleFile work?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3933960#M57430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into the same error message and&amp;nbsp; ADN support found the cause. It seems that filename and stylename needs to be the same. Basically one style per mln file. I just checked the AC docs and it seems you can have more than one style in a mln file. But loading a style from a file&amp;nbsp;containing &amp;nbsp;multiple styles didn't work for me (AC map 2013 sp1). Maybe this information&amp;nbsp; helps someone else as well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 15:13:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-does-db-loadmlinestylefile-work/m-p/3933960#M57430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-23T15:13:40Z</dc:date>
    </item>
  </channel>
</rss>

