Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Create a sketch and get all intersection curve with all the parts.

Dear all,
The CAD process I'm doing now is using "intersection curve" to get all the curves, then create a sketch and project them.
("intersection curve" and project with USE, I can use mouse to select a window.)
I want to create a FS, maybe there is another efficiency way to do this. (The input is a selected Plane)
- how to create sketch to get all intersection curves
- how to use for loop with all part.
If there is a similar FS could be a reference, please also provide and I could study it.
Thanks all
Steven
0
Comments
Update: Simplify, using body to do intersect.
FeatureScript 2737;
import(path : "onshape/std/common.fs", version : "2737.0");
annotation { "Feature Type Name" : "Section Curves", "Feature Type Description" : "Intersect a plane with all faces" }
export const SectionCurves = defineFeature(function(context is Context, id is Id, definition is map)
precondition
{
// Pick Plane
annotation { "Name" : "Cut Plane", "Filter" : EntityType.FACE && GeometryType.PLANE, "MaxNumberOfPicks" : 1 }
definition.cutPlane is Query;
Question:
FeatureScript 2737;
import(path : "onshape/std/common.fs", version : "2737.0");
annotation { "Feature Type Name" : "Section Curves", "Feature Type Description" : "Intersect a plane with all faces" }
export const SectionCurves = defineFeature(function(context is Context, id is Id, definition is map)
precondition
{
// pick plane
annotation { "Name" : "Cut Plane", "Filter" : EntityType.FACE && GeometryType.PLANE, "MaxNumberOfPicks" : 1 }
definition.cutPlane is Query;
I debug from GhatGPT, and now it could generate the curves.
Question: