# US 2026/0289034 A1 · Machine-learning a function configured to predict constraints for a 2d sketch representing at least a portion of a mechanical part

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0289034 A1
- Document ID: US20260289034A1
- Status: Published application
- Kind: A1
- Application number: 19/564,800
- Filed: 2026-03-12
- Published: 2026-09-24
- Earliest claimed: 2025-03-12
- Assignees: Dassault Systemes
- Applicants: Dassault Systemes
- Inventors: Theodore LERONDEAU; Pascal HEBRARD; Fabrice CAILLAUD; Zhenchen ZHANG; Delphine JENNEQUIN
- Web page: https://patentgrep.com/patent/US20260289034A1

## CPC

- G06F 30/17: Mechanical parametric or variational design
- G06F 30/27: using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
- G06F 2111/04: Constraint-based CAD
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for machine-learning a function configured constraints prediction for a sketch representing at least a portion of a mechanical part. The method includes providing a training dataset of training examples, each including a graph representing a sketch. The graph includes object nodes each representing a geometric object, geometry nodes each representing a geometric property, topological edges each representing a topological link, geometrical edges each connecting a geometry node to one object node, and constraint edges each representing a constraint and labeled with a label of a predefined set of labels each representing a constraint of a predefined constraints set. The method includes training the function to take as input a graph representing a sketch and to output constraints each of a constraint edge of the graph and each belonging to the predefined constraints set.

## Claims

### Claim 1

A computer-implemented method for machine-learning a function configured to predict constraints for a 2D sketch representing at least a portion of a mechanical part, the method comprising:
obtaining a training dataset of training examples, each training example having a graph representing a 2D sketch representing at least a portion of a mechanical part, the graph including:
object nodes each representing a geometric object of the sketch;
geometry nodes each representing a geometric property;
topological edges each connecting two object nodes and representing a topological link between the objects represented by the two nodes;
geometrical edges each connecting a geometry node to one object node, object nodes sharing the same geometric property being connected to a same geometry node representing the geometric property; and
constraint edges each connecting two object nodes and representing a constraint between the objects represented by the two object nodes, each constraint edge being labeled with a respective label of a predefined set of constraint labels, each label of the set representing a respective constraint of a predefined set of constraints; and
training the function based on the training dataset, the function being trained to take as input a graph representing a 2D sketch representing at least a portion of a mechanical part and to output a set of constraints each of a constraint edge of the graph, each constraint of the set belonging to the predefined set of constraints.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein each training example further includes data specifying a set of couples of object nodes on which a constraint can be assigned.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein for each possible couple of object nodes of the graph of the training example, the couple is excluded from the set of couples if:
the object nodes both represent a same point;
the object nodes both represent a same line;
the object nodes both represent an external object;
the object nodes both represent a reference object;
the object nodes represent fixed objects; or
one object node represents a reference object and the other object node represent an external object.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein obtaining the training dataset further includes forming the training dataset by:
obtaining a set of 2D sketches, each representing at least a part of a respective mechanical part, to be represented by graphs forming training examples; and
reducing the set of 2D sketches by only keeping sketches which respect at least one of criteria:
the sketch is well-defined;
the sketch is satisfied;
the sketch includes at least a predefined number of geometries;
the sketch includes manifold profiles only; and
the sketch includes at least one dimensional constraint.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the forming the training dataset further includes:
converting each 2D sketch of the reduced set into a TEXT file;
converting each TEXT file into a CSV file; and
converting each CSV file into a respective graph.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the function includes a Graph Neural Network (GNN).

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the Graph Neural Network is a sequential Graph Neural Network including a first Graph Neural Network for prediction of logical constraints and a second Graph Neural Network for prediction dimensional constraints based on the output of the first Graph Neural Network.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the predefined set of constraints includes:
local constraints, consisting of: coincidence, parallelism, perpendicularity, and concentricity;
dimensional constraints, consisting of: angle, distance, and radius; and
negative constraint signifying the absence of constraints.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein during, for at least some of the training samples, the method includes setting a number of constraint edges corresponding to the negative constraint to being equal to about twice the a number of constraint edges corresponding to the other constraints.

### Claim 10

A computer-implemented method of applying of a function configured to predict constraints for a 2D sketch representing at least a portion of a mechanical part, the function being learnable according to a machine-learning, the machine-learning including:
obtaining a training dataset of training examples, each training example including a graph representing a 2D sketch representing at least a portion of a mechanical part, the graph including:
object nodes each representing a geometric object of the sketch;
geometry nodes each representing a geometric property;
topological edges each connecting two object nodes and representing a topological link between the objects represented by the two nodes;
geometrical edges each connecting a geometry node to one object node, object nodes sharing the same geometric property being connected to a same geometry node representing the geometric property; and
constraint edges each connecting two object nodes and representing a constraint between the objects represented by the two object nodes, each constraint edge being labeled with a respective label of a predefined set of constraint labels, each label of the set representing a respective constraint of a predefined set of constraints; and
training the function based on the training dataset, the function being trained to take as input a graph representing a 2D sketch representing at least a portion of a mechanical part and to output a set of constraints each of a constraint edge of the graph, each constraint of the set belonging to the predefined set of constraints,
the method of applying comprising:
obtaining the graph representing a 2D sketch representing at least the portion of the mechanical part, the graph including:
object nodes each representing the geometric object of the sketch;
geometry nodes each representing the geometric property;
topological edges each connecting two object nodes and representing the topological link between the objects represented by the two nodes; and
geometrical edges each connecting the geometry node to one object node, object nodes sharing the same geometric property being connected to the same geometry node representing the geometric property; and
predicting constraint edges of the graph, thereby predicting a set of constraints for the 2D sketch, each constraint belonging to the predefined set of constraints.

### Claim 11 (depends on 10)

The computer-implemented method of applying of claim 10, further comprising applying a post-processing to make the 2D sketch iso-constrained.

### Claim 12

A device comprising:
a non-transitory computer-readable data storage medium, the medium having recorded thereon at least one of:
a computer program having at least one of:
first instructions for performing a machine-learning of a function configured to predict constraints for a 2D sketch representing at least a portion of a mechanical part, the machine-learning causing a processor to be configured to:
obtain a training dataset of training examples, each training example having a graph representing a 2D sketch representing at least a portion of a mechanical part, the graph including:
object nodes each representing a geometric object of the sketch;
geometry nodes each representing a geometric property;
topological edges each connecting two object nodes and representing a topological link between the objects represented by the two nodes;
geometrical edges each connecting a geometry node to one object node, object nodes sharing the same geometric property being connected to a same geometry node representing the geometric property; and
constraint edges each connecting two object nodes and representing a constraint between the objects represented by the two object nodes, each constraint edge being labeled with a respective label of a predefined set of constraint labels, each label of the set representing a respective constraint of a predefined set of constraints; and
training the function based on the training dataset, the function being trained to take as input a graph representing a 2D sketch representing at least a portion of a mechanical part and to output a set of constraints each of a constraint edge of the graph, each constraint of the set belonging to the predefined set of constraints,
second instructions for performing an applying of the function, the applying causing the processor to be configured to:
obtain a graph representing a 2D sketch representing at least a portion of a mechanical part, the graph including:
object nodes each representing a geometric object of the sketch;
geometry nodes each representing a geometric property;
topological edges each connecting two object nodes and representing a topological link between the objects represented by the two nodes;
geometrical edges each connecting a geometry node to one object node, object nodes sharing the same geometric property being connected to a same geometry node representing the geometric property; and
predict constraint edges of the graph, thereby predicting a set of constraints for the 2D sketch, each constraint belonging to the predefined set of constraints,
a function learnable according to the machine-learning.

### Claim 13 (depends on 12)

The device of claim 12, wherein each training example further includes data specifying a set of couples of object nodes on which a constraint can be assigned.

### Claim 14 (depends on 13)

The device of claim 13, wherein for each possible couple of object nodes of the graph of the training example, the couple is excluded from the set of couples if:
the object nodes both represent a same point;
the object nodes both represent a same line;
the object nodes both represent an external object;
the object nodes both represent a reference object;
the object nodes represent fixed objects; or
one object node represents a reference object and the other object node represent an external object.

### Claim 15 (depends on 12)

The device of claim 12, wherein the processor is further configured to obtain the training dataset by being configured to form the training dataset by being configured to:
obtain a set of 2D sketches, each representing at least a part of a respective mechanical part, to be represented by graphs forming training examples; and
reduce the set of 2D sketches by only keeping sketches which respect at least one of criteria:
the sketch is well-defined;
the sketch is satisfied;
the sketch includes at least a predefined number of geometries;
the sketch includes manifold profiles only; and
the sketch includes at least one dimensional constraint.

### Claim 16 (depends on 15)

The device of claim 15, wherein the processor is further configured to form the training dataset by being configured to:
convert each 2D sketch of the reduced set into a TEXT file;
convert each TEXT file into a CSV file; and
convert each CSV file into a respective graph.

### Claim 17 (depends on 12)

The device of claim 12, further comprising the processor coupled to the non-transitory computer-readable data storage medium.

### Claim 18 (depends on 13)

The device of claim 13, further comprising the processor coupled to the non-transitory computer-readable data storage medium.

### Claim 19 (depends on 14)

The device of claim 14, further comprising the processor coupled to the non-transitory computer-readable data storage medium.

### Claim 20 (depends on 15)

The device of claim 15, further comprising the processor coupled to the non-transitory computer-readable data storage medium.
