<?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 to edit the values of the MachineAvoidGroups automatically inserted by Fusion in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13781325#M22137</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;PRE&gt;ModelGroup = machineAvoidGroups.defaultGroup(1)
        ModelGroup.machineMode = adsk.cam.MachiningMode.Avoid_MachiningMode&lt;/PRE&gt;&lt;P&gt;don't works.&lt;BR /&gt;The mode remain even at machining.&lt;BR /&gt;It change not to avoid.&lt;BR /&gt;Best regards&lt;BR /&gt;Maurizio&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2025 09:49:25 GMT</pubDate>
    <dc:creator>maurizio_manzi</dc:creator>
    <dc:date>2025-08-25T09:49:25Z</dc:date>
    <item>
      <title>How to edit the values of the MachineAvoidGroups automatically inserted by Fusion</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13749535#M22057</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;in this example:&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-a0cfe144-1a0f-4109-9125-8fbd3176ceed" target="_blank" rel="noopener nofollow noreferrer"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-a0cfe144-1a0f-4109-9125-8fbd3176ceed&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;are only the&amp;nbsp;&lt;SPAN&gt;munually groups in use:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;# Get the MachineAvoidGroups object from the CadFaceGroups cad object. This object manages the list of mutually exclusive groups.&lt;/SPAN&gt;
        _machineAvoidGroups = surfaceGroupsParam.getMachineAvoidGroups() &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Neither in the example nor in the API documentation could I find how to change the mode for the groups automatically inserted by Fusion.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Maurizio&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13749535#M22057</guid>
      <dc:creator>maurizio_manzi</dc:creator>
      <dc:date>2025-08-01T08:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the values of the MachineAvoidGroups automatically inserted by Fusion</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13766570#M22088</link>
      <description>&lt;P&gt;this works good for me:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="python"&gt;def FlatMillFaces(tool: int, machine, faces, sheet: adsk.cam.Setup):
    if len(faces) &amp;gt; 0:
        edgelist = []
        for items in faces:
            items: adsk.fusion.BRepFace
            for loop in items.loops:
                if loop.isOuter:
                    for e in loop.edges:
                        edgelist.append(e)
        tool = Utility.ToolGetter(machine, tool)
        sheets = sheet.parentSetup
        flatInput: adsk.cam.OperationInput = sheets.operations.createInput("flat")
        flatInput.tool = tool
        preset = tool.presets.itemsByName("Default preset")
        flatInput.toolPreset = preset[0]
        flatInput.displayName = f'PocketMill {tool.parameters.itemByName("tool_description").value.value}'
        #flatInput.parameters.itemByName("tool_coolant").value.value = "disabled"
        flatInput.parameters.itemByName("useRestMachining").value.value = False
        flatInput.parameters.itemByName("restMaterialSource").value.value = "job"
        flatInput.parameters.itemByName("topHeight_mode").value.value = "from stock top"
        flatInput.parameters.itemByName("topHeight_offset").expression = "0 in"
        #flatInput.parameters.itemByName("topHeight_checkStockTop").value.value = True


        flatOp: adsk.cam.Operation = sheets.operations.add(flatInput)
        flatOp.parameters.itemByName("boundaryMode").value.value = "none"
        flatOp.parameters.itemByName("direction").value.value = "both ways"
        flatOp.parameters.itemByName("transitionType").value.value = "curve"
        surfaceGroupsParam: adsk.cam.CadMachineAvoidGroupsParameterValue = flatOp.parameters.itemByName('checkSurfaceSelectionSets').value        
        machineAvoidGroups = surfaceGroupsParam.getMachineAvoidGroups()
        ModelGroup = machineAvoidGroups.defaultGroup(1)
        ModelGroup.machineMode = adsk.cam.MachiningMode.Avoid_MachiningMode
        machineAvoidGroup: adsk.cam.MachineAvoidDirectSelection = machineAvoidGroups.createNewMachineAvoidDirectSelectionGroup()
        machineAvoidGroup.machineMode = adsk.cam.MachiningMode.Machine_MachiningMode
        machineAvoidGroup.inputGeometry = faces
        surfaceGroupsParam.applyMachineAvoidGroups(machineAvoidGroups)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Aug 2025 22:49:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13766570#M22088</guid>
      <dc:creator>Josh3GG88</dc:creator>
      <dc:date>2025-08-13T22:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the values of the MachineAvoidGroups automatically inserted by Fusion</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13781325#M22137</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;PRE&gt;ModelGroup = machineAvoidGroups.defaultGroup(1)
        ModelGroup.machineMode = adsk.cam.MachiningMode.Avoid_MachiningMode&lt;/PRE&gt;&lt;P&gt;don't works.&lt;BR /&gt;The mode remain even at machining.&lt;BR /&gt;It change not to avoid.&lt;BR /&gt;Best regards&lt;BR /&gt;Maurizio&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 09:49:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-edit-the-values-of-the-machineavoidgroups-automatically/m-p/13781325#M22137</guid>
      <dc:creator>maurizio_manzi</dc:creator>
      <dc:date>2025-08-25T09:49:25Z</dc:date>
    </item>
  </channel>
</rss>

