Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
for pocket2d I select the geometry:
operationInput = setup.operations.createInput('pocket2d')
operationInput.tool = tool
op_2Dpocket = setup.operations.add(operationInput)
cadcontours = op_2Dpocket.parameters.itemByName('pockets').value
selection = cadcontours.getCurveSelections()
Geometry = [mySketch.sketchCurves.item(0)]
chain = selection.createNewChainSelection() # Use chain selection
chain.inputGeometry = Geometry
cadcontours.applyCurveSelections(selection) # The default is closed chain,so just apply the chain.
How to select the geometry for 'contour2d'- operations ?
cadcontours = op_2Dpocket.parameters.itemByName('pockets').value # <--- 'pockets' is not allowed for contour2d.
Where can I find a list of these "names" in the API help? These are not parameters and are not displayed in the cam with the shift key.
cadcontours = op_2Dpocket.parameters.itemByName('pockets').value # <--- 'pockets' is not allowed for contour2d.
Where can I find a list of these "names" in the API help? These are not parameters and are not displayed in the cam with the shift key.
Best regards
Maurizio
Solved! Go to Solution.