<?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: Import or run sub from other dvb in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8906370#M5421</link>
    <description>&lt;P&gt;I see, thanks. I've rewritten it to autocad now (quiet quickly) and everything i wanted to work works so I'm satisfied, there wasn't really much hard work in excel to do, copying the points into the worksheet (created by autocad) is enough. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can imagine there might be the same problems when you write something in autocad and you need excel to reference to certain trusted locations (so same problem in other way). seems this can't be done well that's good to know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this same problem also present when working in .net? like with the .net api for autocad like i was once told about here on this forum?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 14:23:40 GMT</pubDate>
    <dc:creator>stefanveurink68AXD</dc:creator>
    <dc:date>2019-07-12T14:23:40Z</dc:date>
    <item>
      <title>Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8885957#M5414</link>
      <description>&lt;P&gt;Fellas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is the following. There are lots of macro's, or more specific .dvb files. They all need to execute a sub when executed. However, this sub might slightly change in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I could do is open each file, put the sub in there, and call it. However, when changing in the future, I'll have to change it everywhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is just refer to the specific .dvb file where the sub is in, and call that sub in that .dvb from all the other .dvb files i've got, hopefully with just a few lines of code. So when changes are applied, all .dvb files are automatically updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank u anyways.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 17:20:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8885957#M5414</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2019-07-02T17:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8885971#M5415</link>
      <description>&lt;P&gt;Sure this is possible. Just store it in a a location that is in your Trusted Folders and reference the project from the Tools&amp;gt;References menu. Then call the macro using the format Project.Module.Macro. Let's say you have a dvb with a Project call Utilities and a module called Files and a macro called GetFile. You would refer to it using Utilties.Files.GetFile().&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 17:25:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8885971#M5415</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-07-02T17:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8886000#M5416</link>
      <description>&lt;P&gt;Yes, it is possible: you organize some of you most common used classes/modules that do the common work and can be shared by other projects in one *.dvb project; then, in other projects, you simply add reference to this *.dvb file (by going to menu "Tools-&amp;gt;References..." and clicking "Browse" button to find the shared *.dvb file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way, if you need to make changes to the shared project, you only do it in one place, assume the change does not break the compatibility (i.e. not class name change, no method signature change).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 17:36:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8886000#M5416</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-07-02T17:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8887615#M5417</link>
      <description>&lt;P&gt;Thanks this works great, exactly what I needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question: how to automatically reference the .dvb? In other words, when I open autocad, I don't want to have to reference the file every time. Seems like this isn't stored in the userprofile (under options), so where do I store this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:27:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8887615#M5417</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2019-07-03T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8888164#M5418</link>
      <description>&lt;P&gt;A VBA project remembers the referenced *.dvb file. That is, you only need to add reference to the shared VBA project once. As long as you save the *.dvb project for any change (including added references).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:32:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8888164#M5418</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-07-03T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8898108#M5419</link>
      <description>&lt;P&gt;One (or two) more questions about in some way this same issue:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i've got now is some coordinates in excel. In excel i've written some vba code to export them to autocad as a lwpolyline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I wish to also run a sub (written in autocad, saved as .dvb) from this same routine in excel. First problem i've got with this is it is not possible to reference to a .dvb file in excel. so I can't call the sub (which does all its things in autocad) from excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas how to deal with this?&lt;BR /&gt;&lt;BR /&gt;Next to that: at the start i read somewhere on the internet that its necessary to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- when data goes from excel to autocad: write your code in excel&lt;BR /&gt;- when data goes from autocad to excel: write your code in autocad.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment i doubt about if this is true since the two programs seem to interact perfectly together, i can get some input from autocad to excel by writing code in excel so... is this really necessary?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If answer to second question is no, maybe i can rewrite the excelcode to autocad... which should make it work i guess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder how you guys think about this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 11:44:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8898108#M5419</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2019-07-09T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8898516#M5420</link>
      <description>&lt;P&gt;If you're working in AutoCAD, its best to write your code in AutoCAD. You can create an xl object, get the cell contents for the coords and then create your line...and continue working with the line, etc. If you are working from xl, the only option you have is to run the vba macro using the VBARUN command. This will cause the pline creation to not be connected to your process. So in the end, where you put your code, depends on your whole process. Are you working in xl or are you just using it to store points?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:14:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8898516#M5420</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-07-09T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8906370#M5421</link>
      <description>&lt;P&gt;I see, thanks. I've rewritten it to autocad now (quiet quickly) and everything i wanted to work works so I'm satisfied, there wasn't really much hard work in excel to do, copying the points into the worksheet (created by autocad) is enough. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can imagine there might be the same problems when you write something in autocad and you need excel to reference to certain trusted locations (so same problem in other way). seems this can't be done well that's good to know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this same problem also present when working in .net? like with the .net api for autocad like i was once told about here on this forum?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8906370#M5421</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2019-07-12T14:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Import or run sub from other dvb</title>
      <link>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8906394#M5422</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6508502"&gt;@stefanveurink68AXD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is this same problem also present when working in .net? like with the .net api for autocad like i was once told about here on this forum?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think with .NET, you're still limited to using COM to work with other apps. So the same considerations apply.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:39:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/import-or-run-sub-from-other-dvb/m-p/8906394#M5422</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-07-12T14:39:32Z</dc:date>
    </item>
  </channel>
</rss>

