- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a unique requirement in an automated feature that needs to start the same way the Coil feature starts - i.e. select a plane or planar face, draw a circle and then pop a dialog to get more parameters. The problem is I cannot figure out how to "start" the process with the "sketch plane selection" piece. I can have a selector that selects a plane\planar face and then use that to create a new sketch (on which I believe I know how to get the user to "create" the circle) but this is subtly different to what Coil does. Coil starts the same way Create Sketch starts. How do you start a new sketch "interactively" from the API?
Said differently how do you make this segment from the CircleByCenterRadius_Sample into something that is "user driven" as opposed to hardcoded to the xy plane?
# Create a new sketch on the xy plane.
sketches = rootComp.sketches
xyPlane = rootComp.xYConstructionPlane
sketch = sketches.add(xyPlane)
Yes I know I could add a selectEntity in my dialog but I really want to simulate what the Coil feature does. Pointers to code samples would be greatly appreciated.
Thanks
Tony
Solved! Go to Solution.