<?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 Inventor 2023 or 2025: Loft between 2D-sketches partially works corret, but partailly incorrect (kJoinOpearation fails.) Manually all works fine. Can someboddy help me?? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2023-or-2025-loft-between-2d-sketches-partially-works/m-p/12672808#M165607</link>
    <description>&lt;P&gt;public static void loft_schiene(List&amp;lt;PlanarSketch&amp;gt; s_profile, int nr,bool oper,Profile3D p3d)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;PartFeatureOperationEnum op;&lt;BR /&gt;if(oper)&lt;BR /&gt;op = PartFeatureOperationEnum.kJoinOperation;&lt;BR /&gt;//op = PartFeatureOperationEnum.kSurfaceOperation;&lt;BR /&gt;else&lt;BR /&gt;op = PartFeatureOperationEnum.kCutOperation;&lt;/P&gt;&lt;P&gt;partDoc_fahr[nr] = (PartDocument)Inventor_class.m_InventorApplication.ActiveDocument;&lt;BR /&gt;Inventor.ObjectCollection oColl_k = Inventor_class.m_InventorApplication.TransientObjects.CreateObjectCollection();&lt;BR /&gt;int i;&lt;BR /&gt;for (i = 0; i &amp;lt; s_profile.Count() - 1; i++)&lt;BR /&gt;{&lt;BR /&gt;oColl_k = Inventor_class.m_InventorApplication.TransientObjects.CreateObjectCollection();&lt;BR /&gt;Profile pp1 = s_profile[i].Profiles.AddForSolid();&lt;BR /&gt;Profile pp2 = s_profile[i + 1].Profiles.AddForSolid();&lt;BR /&gt;oColl_k.Add(pp1);&lt;BR /&gt;oColl_k.Add(pp2);&lt;BR /&gt;s_profile[i].Visible = true;&lt;BR /&gt;s_profile[i + 1].Visible = true;&lt;BR /&gt;LoftDefinition oLoftDef = partDoc_fahr[nr].ComponentDefinition.Features.LoftFeatures.&lt;BR /&gt;CreateLoftDefinition(oColl_k, op);&lt;BR /&gt;//oLoftDef.Centerline = pfad_fahrkante[nr].Profiles.AddForSurface();&lt;BR /&gt;oLoftDef.LoftRails.Add(p3d);&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;LoftFeature oLoftF = partDoc_fahr[nr].ComponentDefinition.Features.LoftFeatures.Add(oLoftDef);&lt;BR /&gt;}&lt;BR /&gt;catch&lt;BR /&gt;{&lt;BR /&gt;Program.fp.Write(" 1001-Fehler Fk: {2} bei {0} - {1}\n", i, i + 1,nr); Program.fp.Flush();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;RenderStyles oRenderStyles = Inventor_class.partDoc_fahr[nr].RenderStyles;&lt;BR /&gt;string col = "Yellow";&lt;BR /&gt;//if (nr == 0) col = "Yellow";else col="Blue";&lt;BR /&gt;RenderStyle oMyPartStyle = oRenderStyles[col];&lt;BR /&gt;Inventor_class.partDoc_fahr[nr].ActiveRenderStyle = oMyPartStyle;&lt;BR /&gt;Inventor_class.partDoc_fak_12.Update();&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 18:18:15 GMT</pubDate>
    <dc:creator>r.ziethen</dc:creator>
    <dc:date>2024-03-28T18:18:15Z</dc:date>
    <item>
      <title>Inventor 2023 or 2025: Loft between 2D-sketches partially works corret, but partailly incorrect (kJoinOpearation fails.) Manually all works fine. Can someboddy help me??</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2023-or-2025-loft-between-2d-sketches-partially-works/m-p/12672808#M165607</link>
      <description>&lt;P&gt;public static void loft_schiene(List&amp;lt;PlanarSketch&amp;gt; s_profile, int nr,bool oper,Profile3D p3d)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;PartFeatureOperationEnum op;&lt;BR /&gt;if(oper)&lt;BR /&gt;op = PartFeatureOperationEnum.kJoinOperation;&lt;BR /&gt;//op = PartFeatureOperationEnum.kSurfaceOperation;&lt;BR /&gt;else&lt;BR /&gt;op = PartFeatureOperationEnum.kCutOperation;&lt;/P&gt;&lt;P&gt;partDoc_fahr[nr] = (PartDocument)Inventor_class.m_InventorApplication.ActiveDocument;&lt;BR /&gt;Inventor.ObjectCollection oColl_k = Inventor_class.m_InventorApplication.TransientObjects.CreateObjectCollection();&lt;BR /&gt;int i;&lt;BR /&gt;for (i = 0; i &amp;lt; s_profile.Count() - 1; i++)&lt;BR /&gt;{&lt;BR /&gt;oColl_k = Inventor_class.m_InventorApplication.TransientObjects.CreateObjectCollection();&lt;BR /&gt;Profile pp1 = s_profile[i].Profiles.AddForSolid();&lt;BR /&gt;Profile pp2 = s_profile[i + 1].Profiles.AddForSolid();&lt;BR /&gt;oColl_k.Add(pp1);&lt;BR /&gt;oColl_k.Add(pp2);&lt;BR /&gt;s_profile[i].Visible = true;&lt;BR /&gt;s_profile[i + 1].Visible = true;&lt;BR /&gt;LoftDefinition oLoftDef = partDoc_fahr[nr].ComponentDefinition.Features.LoftFeatures.&lt;BR /&gt;CreateLoftDefinition(oColl_k, op);&lt;BR /&gt;//oLoftDef.Centerline = pfad_fahrkante[nr].Profiles.AddForSurface();&lt;BR /&gt;oLoftDef.LoftRails.Add(p3d);&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;LoftFeature oLoftF = partDoc_fahr[nr].ComponentDefinition.Features.LoftFeatures.Add(oLoftDef);&lt;BR /&gt;}&lt;BR /&gt;catch&lt;BR /&gt;{&lt;BR /&gt;Program.fp.Write(" 1001-Fehler Fk: {2} bei {0} - {1}\n", i, i + 1,nr); Program.fp.Flush();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;RenderStyles oRenderStyles = Inventor_class.partDoc_fahr[nr].RenderStyles;&lt;BR /&gt;string col = "Yellow";&lt;BR /&gt;//if (nr == 0) col = "Yellow";else col="Blue";&lt;BR /&gt;RenderStyle oMyPartStyle = oRenderStyles[col];&lt;BR /&gt;Inventor_class.partDoc_fahr[nr].ActiveRenderStyle = oMyPartStyle;&lt;BR /&gt;Inventor_class.partDoc_fak_12.Update();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 18:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-2023-or-2025-loft-between-2d-sketches-partially-works/m-p/12672808#M165607</guid>
      <dc:creator>r.ziethen</dc:creator>
      <dc:date>2024-03-28T18:18:15Z</dc:date>
    </item>
  </channel>
</rss>

