Model.sketchproject#
- Model.sketchproject(sketch_id, collection, create_entities=0)#
Projects the line and surface entities into the sketch work plane along the normal direction.
- Parameters:
sketch_id (unsigned int) – The ID of the sketch entity.
collection (Collection) – The collection containing the entities to project. Valid entities are lines, points, surfaces.
create_entities (unsigned int) –
0 - Projected curves are added as guide curves in the sketch.
1 - Projected curves are added as sketch geometries.
Example#
Project the surface with ID 8 onto sketch with ID 1 and add it as a sketch geometry#import hm import hm.entities as ent model = hm.Model() model.sketchproject( sketch_id=1, collection=(model, ent.Surface, [8]), create_entities=1 )