<?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: Boundary patch with guide rails using VBA (API) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/9875380#M89215</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt;&amp;nbsp;may I ask you for help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fwrf.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/845299iFD6D6AFC3D6B8357/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fwrf.JPG" alt="fwrf.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create boundary patches where these triangles are, to make a B-rep solid out of this 3D sketch via VBA. I don't know what path to give to the boundary patch definition model, for it to create the patches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, which didn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oLine3d As SketchLine3D&lt;BR /&gt;Dim oPath As Path&lt;BR /&gt;For Each oLine3d In oSketch3d.SketchLines3D&lt;BR /&gt;oPath = oDef.Features.CreatePath(oLine3d)&lt;BR /&gt;Call oBoundaryPatchDef.BoundaryPatchLoops.Add(oPath)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 14:28:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-17T14:28:04Z</dc:date>
    <item>
      <title>Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7976194#M89207</link>
      <description>&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this Surface:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH bkL"&gt;&lt;DIV class="no"&gt;&lt;DIV class="nH bkK nn"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH ar4 z"&gt;&lt;DIV class="aeI"&gt;&lt;DIV class="AO"&gt;&lt;DIV class="Tm aeJ bt0"&gt;&lt;DIV class="aeF"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH g"&gt;&lt;TABLE cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="nH if"&gt;&lt;DIV class="nH aHU"&gt;&lt;DIV class="nH hx"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="h7 ie nH oy8Mbf"&gt;&lt;DIV class="Bk"&gt;&lt;DIV class="G3 G2"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="adn ads"&gt;&lt;DIV class="gs"&gt;&lt;DIV class="ii gt "&gt;&lt;DIV class="a3s aXjCH m163240f580d157ff"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;IMG width="472" height="301" src="https://mail.google.com/mail/u/1/?ui=2&amp;amp;ik=31e80251e8&amp;amp;view=fimg&amp;amp;th=163240f580d157ff&amp;amp;attid=0.0.3&amp;amp;disp=emb&amp;amp;realattid=ii_jgpyus0f0_163240720c8abd63&amp;amp;attbid=ANGjdJ9jcenIDdLth1pQPubIgFsCFj-FRQF6EHi5jbl-rIMFRVxwCGtp1RCNGNz8mUQmFYWRC0MN28MUuo1ZPKg5gMmlRHR00Cn3eK-wXm3v13RMpYRzkd34qj-Zi4s&amp;amp;sz=w944-h602&amp;amp;ats=1525319690970&amp;amp;rm=163240f580d157ff&amp;amp;zw&amp;amp;atsh=1" border="0" /&gt;I don't have any problem with the&amp;nbsp;code until this point, but I can not find any example or guide to make a Boundary patch with guide rails. What I want is to get this Surface:&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH bkL"&gt;&lt;DIV class="no"&gt;&lt;DIV class="nH bkK nn"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH ar4 z"&gt;&lt;DIV class="aeI"&gt;&lt;DIV class="AO"&gt;&lt;DIV class="Tm aeJ bt0"&gt;&lt;DIV class="aeF"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH g"&gt;&lt;TABLE cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="nH if"&gt;&lt;DIV class="nH aHU"&gt;&lt;DIV class="nH hx"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="h7 ie nH oy8Mbf"&gt;&lt;DIV class="Bk"&gt;&lt;DIV class="G3 G2"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="adn ads"&gt;&lt;DIV class="gs"&gt;&lt;DIV class="ii gt "&gt;&lt;DIV class="a3s aXjCH m163240f580d157ff"&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG width="472" height="355" src="https://mail.google.com/mail/u/1/?ui=2&amp;amp;ik=31e80251e8&amp;amp;view=fimg&amp;amp;th=163240f580d157ff&amp;amp;attid=0.0.1&amp;amp;disp=emb&amp;amp;realattid=ii_jgpywq1f2_1632408855b82575&amp;amp;attbid=ANGjdJ8xinie_Mh2iynYjeP62JUvSKjrqaiuZXtS53jocBLGl3uOQ-KOCujWyys2fi6WUrtHweeQ0SzV1obhuc19IlGj3Ib7ihGW1NX7dQik9VjqFmbjb-zwnAQg_4Q&amp;amp;sz=w944-h710&amp;amp;ats=1525319690970&amp;amp;rm=163240f580d157ff&amp;amp;zw&amp;amp;atsh=1" border="0" /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH bkL"&gt;&lt;DIV class="no"&gt;&lt;DIV class="nH bkK nn"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH ar4 z"&gt;&lt;DIV class="aeI"&gt;&lt;DIV class="AO"&gt;&lt;DIV class="Tm aeJ bt0"&gt;&lt;DIV class="aeF"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH g"&gt;&lt;TABLE cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="nH if"&gt;&lt;DIV class="nH aHU"&gt;&lt;DIV class="nH hx"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="h7 ie nH oy8Mbf"&gt;&lt;DIV class="Bk"&gt;&lt;DIV class="G3 G2"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="adn ads"&gt;&lt;DIV class="gs"&gt;&lt;DIV class="ii gt "&gt;&lt;DIV class="a3s aXjCH m163240f580d157ff"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;IMG width="472" height="271" src="https://mail.google.com/mail/u/1/?ui=2&amp;amp;ik=31e80251e8&amp;amp;view=fimg&amp;amp;th=163240f580d157ff&amp;amp;attid=0.0.2&amp;amp;disp=emb&amp;amp;realattid=ii_jgpyyb5f3_1632409a4e9318b6&amp;amp;attbid=ANGjdJ9aHqU9fhET0lqpwk6ytLQRV93IZ14ErJMAiNkzEc7n5CRDe6GtyfGxnClzKY4ZyA1qZai7FcLzugPUkoBCR6t_Jxd74d__pT5i7lhdVy-QqPEMQWGizWw9h1E&amp;amp;sz=w944-h542&amp;amp;ats=1525319690970&amp;amp;rm=163240f580d157ff&amp;amp;zw&amp;amp;atsh=1" border="0" /&gt;&lt;/DIV&gt;&lt;DIV&gt;Could anyone help me with this code using boundary patch operation WITH GUIDE RAILS?&lt;/DIV&gt;&lt;DIV&gt;I need examples, just to have an idea about how to programm that operation.&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PD:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here you are a Little of my code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oBoundaryPatchDef As BoundaryPatchDefinition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oBoundaryPatchDef = partDef.Features.BoundaryPatchFeatures.CreateBoundaryPatchDefinition&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oProfileLine As SketchLine&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oPath As Path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each oProfileLine In sketchXY.SketchLines&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPath = partDef.Features.CreatePath(oProfileLine)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call oBoundaryPatchDef.BoundaryPatchLoops.Add(oPath)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oBoundaryPatch As BoundaryPatchFeature&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oBoundaryPatch = partDef.Features.BoundaryPatchFeatures.Add(oBoundaryPatchDef)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 May 2018 04:12:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7976194#M89207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T04:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7976263#M89208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt;, Could you help shed some lights here?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 05:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7976263#M89208</guid>
      <dc:creator>Xun.Zhang</dc:creator>
      <dc:date>2018-05-03T05:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7976645#M89209</link>
      <description>&lt;P&gt;Seems I could not see your pictures(not sure if others can see them or not), can you create a Word document to demonstrate the problem?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 08:52:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7976645#M89209</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2018-05-03T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7977213#M89210</link>
      <description>&lt;P&gt;OK, I will check&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 13:22:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7977213#M89210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7977252#M89211</link>
      <description>&lt;P&gt;I had the same problem with Mozilla FireFox browser. I just had to wait some time and then I could watch the pictures. &lt;SPAN class="short_text"&gt;&lt;SPAN&gt;If problem persists, please tell me&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I attach the pictures in the order specified in the post.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fig 1.png" style="width: 944px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/496366i3A6FF79B27D5DE08/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig 1.png" alt="fig 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fig 2.png" style="width: 944px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/496367iB55E2492B53311B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig 2.png" alt="fig 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fig 3.png" style="width: 944px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/496368i2FC72B98C941F9B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig 3.png" alt="fig 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&lt;SPAN style="color: #808000;"&gt;kelly.young&lt;/SPAN&gt;&amp;nbsp;has embedded your images for clarity. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 21:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7977252#M89211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7977574#M89212</link>
      <description>&lt;P&gt;Thanks for your help, by the way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:25:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7977574#M89212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7979151#M89213</link>
      <description>&lt;P&gt;If the second sketch has a sketch arc and control point spline, then you can try below VBA sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub CreateBPWithGuiderail()
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSk1 As PlanarSketch, oSk2 As PlanarSketch
    Set oSk1 = oDoc.ComponentDefinition.Sketches(1)
    Set oSk2 = oDoc.ComponentDefinition.Sketches(2)
    
    Dim oProfile1 As Profile
    Set oProfile1 = oSk1.Profiles.AddForSurface
    
    Dim oBPDef1 As BoundaryPatchDefinition
    Dim oBP1 As BoundaryPatchFeature
    
    Set oBPDef1 = oDoc.ComponentDefinition.Features.BoundaryPatchFeatures.CreateBoundaryPatchDefinition
    oBPDef1.BoundaryPatchLoops.Add oProfile1
    Set oBP1 = oDoc.ComponentDefinition.Features.BoundaryPatchFeatures.Add(oBPDef1)
    
    Dim oBPDef2 As BoundaryPatchDefinition
    Dim oBP2 As BoundaryPatchFeature
    Dim oGuideRails As ObjectCollection
    
    Set oBPDef2 = oDoc.ComponentDefinition.Features.BoundaryPatchFeatures.CreateBoundaryPatchDefinition
    oBPDef2.BoundaryPatchLoops.Add oBP1.Faces(1).EdgeLoops(1)
    Set oGuideRails = ThisApplication.TransientObjects.CreateObjectCollection
    Set oPath = oDoc.ComponentDefinition.Features.CreatePath(oSk2.SketchControlPointSplines(1))
    
    oGuideRails.Add oSk2.SketchArcs(1)
    oGuideRails.Add oSk2.SketchControlPointSplines(1)
    oBPDef2.GuideRails = oGuideRails
    
    Set oBP2 = oDoc.ComponentDefinition.Features.BoundaryPatchFeatures.Add(oBPDef2)
    
End Sub&lt;/PRE&gt;
&lt;P&gt;Please let me if it works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 02:54:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7979151#M89213</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2018-05-04T02:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7979333#M89214</link>
      <description>&lt;P&gt;It worked perfect!&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;BR /&gt;You have helped me a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 05:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/7979333#M89214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-04T05:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/9875380#M89215</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt;&amp;nbsp;may I ask you for help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fwrf.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/845299iFD6D6AFC3D6B8357/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fwrf.JPG" alt="fwrf.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create boundary patches where these triangles are, to make a B-rep solid out of this 3D sketch via VBA. I don't know what path to give to the boundary patch definition model, for it to create the patches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, which didn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oLine3d As SketchLine3D&lt;BR /&gt;Dim oPath As Path&lt;BR /&gt;For Each oLine3d In oSketch3d.SketchLines3D&lt;BR /&gt;oPath = oDef.Features.CreatePath(oLine3d)&lt;BR /&gt;Call oBoundaryPatchDef.BoundaryPatchLoops.Add(oPath)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 14:28:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/9875380#M89215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-17T14:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary patch with guide rails using VBA (API)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/9891188#M89216</link>
      <description>&lt;P&gt;Can you provide your data so I can try with it? Don't share confidential data here.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 07:53:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/boundary-patch-with-guide-rails-using-vba-api/m-p/9891188#M89216</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2020-11-24T07:53:16Z</dc:date>
    </item>
  </channel>
</rss>

