<?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: pack and go with drawings vb.net in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/10556494#M127862</link>
    <description>hey mate, did you end up solving writing a code that works in VB.net?</description>
    <pubDate>Thu, 19 Aug 2021 00:26:17 GMT</pubDate>
    <dc:creator>jakew4ZK5X</dc:creator>
    <dc:date>2021-08-19T00:26:17Z</dc:date>
    <item>
      <title>pack and go with drawings vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8882807#M98994</link>
      <description>&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find a solution how I can take the dwg drawings with me. These are in the workspace but in a different folder.&lt;/P&gt;&lt;P&gt;I have to change this rule. But I don't find the information. I tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;the full code&lt;/P&gt;&lt;PRE&gt; oPacknGo.AddFilesToPackage(path,sRefFiles)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;path stands for the location of the folder. But this gives an error &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;&lt;P&gt;Do you know of a possible solution or where I can find more information about how it works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        Dim oPacknGoComp As New PackAndGoLib.PackAndGoComponent
        Dim pAth1 As String
        Dim pAth2 As String
        Dim pAth3 As String


        Dim fileReader As String
        fileReader = My.Computer.FileSystem.ReadAllText("C:\Users\epls\Desktop\PATH.txt")
        Dim paths As String() = fileReader.Split(New String() {System.Environment.NewLine},
         StringSplitOptions.None)

        'Dim paths As String() = fileReader.Split(vbLf)

        pAth1 = paths(0)
        pAth2 = paths(1)
        pAth3 = paths(2)




        Dim oPacknGo As PackAndGoLib.PackAndGo

        If (Not System.IO.Directory.Exists(pAth2)) Then
            System.IO.Directory.CreateDirectory(pAth2)
        End If



        oPacknGo = oPacknGoComp.CreatePackAndGo(pAth1, pAth2)


        ' set the correct project file.  otherwise, the method will crash

        oPacknGo.ProjectFile = pAth3



        Dim sRefFiles = New String() {}

        Dim sMissFiles = New Object



        '  Set the options

        oPacknGo.SkipLibraries = True

        oPacknGo.SkipStyles = True

        oPacknGo.SkipTemplates = True

        oPacknGo.CollectWorkgroups = False

        oPacknGo.KeepFolderHierarchy = True

        oPacknGo.IncludeLinkedFiles = True



        '  Get the referenced files

        oPacknGo.SearchForReferencedFiles(sRefFiles, sMissFiles)


        '  Add the referenced files for package

        oPacknGo.AddFilesToPackage(sRefFiles)



        ' Start the pack and go to create the package

        oPacknGo.CreatePackage()&lt;/PRE&gt;&lt;P&gt;thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8882807#M98994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: pack and go with drawings vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8882831#M98995</link>
      <description>&lt;PRE&gt; Public Sub PackAndGoSample(a As String)
        'SET THE APPLICATION TO 64 BIT
        Dim fio As System.IO.FileInfo
        Dim dirio As System.IO.DirectoryInfo

        fio = New System.IO.FileInfo(a)
        dirio = New System.IO.DirectoryInfo(fio.Directory.FullName)

        Dim oPacknGoComp As New PackAndGoLib.PackAndGoComponent

        Dim oPacknGo As PackAndGoLib.PackAndGo
        Try
            MkDir("C:\Temp\PackAndGo")
        Catch ex As Exception

        End Try

        oPacknGo = oPacknGoComp.CreatePackAndGo(a, "C:\Temp\PackAndGo")

        ' Set the design project. This defaults to the current active project.
        oPacknGo.ProjectFile = "C:\Vault\XYZ.ipj"

        Dim sRefFiles = New String() {}
        Dim sMissFiles = New Object

        Dim sRefcingFiles = New String() {}

        ' Set the options
        oPacknGo.SkipLibraries = True
        oPacknGo.SkipStyles = True
        oPacknGo.SkipTemplates = True
        oPacknGo.CollectWorkgroups = False
        oPacknGo.KeepFolderHierarchy = True
        oPacknGo.IncludeLinkedFiles = True

        ' Get the referenced files
        oPacknGo.SearchForReferencedFiles(sRefFiles, sMissFiles)

        oPacknGo.SearchForReferencingFiles(sRefFiles, sRefcingFiles, False, dirio.Parent.FullName &amp;amp; "\_Dwg")

        ' Add the referenced files for package
        'oPacknGo.AddFilesToPackage(sRefFiles)
        'oPacknGo.AddFilesToPackage(sRefcingFiles)

        Dim xa = New String(sRefFiles.Length + sRefcingFiles.Length - 1) {}
        sRefFiles.CopyTo(xa, 0)
        sRefcingFiles.CopyTo(xa, sRefFiles.Length)

        'oPacknGo.AddFilesToPackage(sMissFiles)
        ' Start the pack and go to create the 
        oPacknGo.AddFilesToPackage(xa)
        'MsgBox(xa.Length)
        

        oPacknGo.CreatePackage(True)
    End Sub&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:32:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8882831#M98995</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-07-01T13:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: pack and go with drawings vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8884544#M99023</link>
      <description>&lt;P&gt;thank you very much I could use the code in my code. Thanks again&lt;/P&gt;&lt;P&gt;Another question is there is a place where you can find more explanation how to approach certain functions of inventor in vb.net.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:12:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8884544#M99023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T07:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: pack and go with drawings vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8884633#M99026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do you exactly mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help&amp;gt;&amp;gt;&amp;gt;Programming/API help&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 08:01:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/8884633#M99026</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-07-02T08:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: pack and go with drawings vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/10556494#M127862</link>
      <description>hey mate, did you end up solving writing a code that works in VB.net?</description>
      <pubDate>Thu, 19 Aug 2021 00:26:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/10556494#M127862</guid>
      <dc:creator>jakew4ZK5X</dc:creator>
      <dc:date>2021-08-19T00:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: pack and go with drawings vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/10951075#M134646</link>
      <description>&lt;P&gt;hi Ewoud (&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;),&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you help us with packAndGo to make it run from iLogic API?\&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;can you Share with us you Vb.Net code that you have managed to make it work ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ionut &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7B4B80143EBEB4F250CEEC82342F6CA1/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 10:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/pack-and-go-with-drawings-vb-net/m-p/10951075#M134646</guid>
      <dc:creator>ILU</dc:creator>
      <dc:date>2022-02-15T10:08:38Z</dc:date>
    </item>
  </channel>
</rss>

