SketchManager Class

Class Manager that handles the synchronization between the eyeshot entities and the Sketch entities.
Public NotInheritable Class SketchManager
This language is not supported or no code example is available.
public sealed class SketchManager
This language is not supported or no code example is available.
Name Description
Public property AnimateCamera When true, animates the camera when the Design.EditSketch or EditExit methods are called.
Public property AutomaticTextHeight Obsolete. If true, the text height of the dimensions is computed based on the entities boundingbox.
Public property Static CollinearConstraintImage Gets or sets the collinear constraint image.
Public property Constraints Gets the array of constraints.
Public property Static ConstructionCurvesColor Gets or sets the color used to display construction curves during the Sketch editing.
Public property Static ConstructionCurvesThickness Gets or sets the size used to display the construction curves during the Sketch editing.
Public property Static CurvesThickness Gets or sets the size used to display curves for Sketch.
Public property DOF The degrees of freedom of the constrained entities of the Sketch
Public property Static DimensionsColor Gets or sets the color used to display dimensions during the Sketch editing.
Public property Static DimensionsReferenceColor Gets or sets the color used to display dimensions with reference during the Sketch editing.
Public property Static DimensionsThickness Gets or sets the size used to display dimensions during the Sketch editing.
Public property DimensionsWidthFactor Gets or sets the Text.WidthFactor for the dimensions constraint.
Public property Dragging Returns true if DragStart was invoked and DragEnd has not yet been called.
Public property DrawingPlane The plane where the constraint labels and the entities are drawn in overlay during the sketch editing.
Public property Editing True when editing a sketch, otherwise false.
Public property Entities Gets the array of entities related to the sketch.
Public property Static EqualConstraintImage Gets or sets the equal constraint image.
Public property Static EqualRadiusConstraintImage Gets or sets the equal radius constraint image.
Public property FilledRegionColor Gets or sets the color of the sketch region. <seealso cref="ShowFilledRegion" />
Public property Fit When true, fits the current block entities when a new sketch is created or an existing one is edited.
Public property Static FixConstraintImage Gets or sets the fix constraint image.
Public property Static HorizontalConstraintImage Gets or sets the vertical constraint image.
Public property Static HoveringColor Gets or sets the color used to display the entities when the mouse is over a constraint label.
Public property Static JoinConstraintImage Gets or sets the join constraint image.
Public property Margin Zoom fit margin in pixels, if Fit is true.
Public property Static MidPointConstraintImage Gets or sets the mid point constraint image.
Public property Static MirrorConstraintImage Gets or sets the mirror constraint image.
Public property Static ParallelConstraintImage Gets or sets the parallel constraint image.
Public property PasteOffset Gets or sets the offset along the X-axis and Y-axis of the sketch plane for the pasted entities.
Public property Static PerpendicularConstraintImage Gets or sets the perpendicular constraint image.
Public property Static PointAtConstraintImage Gets or sets the join constraint image.
Public property Static PointOnConstraintImage Gets or sets the point on constraint image.
Public property Static PointsColor Gets or sets the color used to display points during the Sketch editing.
Public property Static PointsThickness Gets or sets the size used to display points during the Sketch editing.
Public property Static PolygonConstraintImage Gets or sets the polygon constraint image.
Public property RedoReady Gets a value indicating whether at least one redo operation can be performed.
Public property RotateToPlane When true, aligns the camera with the sketch plane when a new sketch is created or an existing one is edited.
Public property ShowFilledRegion If true, a semitransparent region that represents the Sketch is displayed.
Public property SketchEntity The Sketch opened for editing. Can be null/Nothing.
Public property SketchPlane The Sketch plane.
Public property Static TangentConstraintImage Gets or sets the tangent constraint image.
Public property TextHeight Obsolete. Gets or sets the text height.
Public property TextScaleFactor Gets or sets the text height scale factor for the sketch's dimensions.
Public property UndoReady Gets a value indicating whether at least one undo operation can be performed.
Public property Static VerticalConstraintImage Gets or sets the vertical constraint image.
Public property ZoomFitMode Gets or sets the SketchManager zoom fit mode when a new sketch is created.
Top
Methods
 
Name Description
Public method AddArc(Point2D, Point2D, Point2D) Adds an arc to the sketch.
Public method AddArc(Arc) Adds the arc to the sketch.
Public method AddCircle(Point2D, Point2D) Adds a circle to the sketch.
Public method AddCircle(Point2D, double) Adds a circle to the sketch.
Public method AddCircle(Circle) Adds the circle to the sketch.
Public method AddCircularSlot(double, double, double, double, double, double) Adds a circular slot to the sketch.
Public method AddEllipse(Point2D, double, double) Adds an ellipse to the sketch.
Public method AddEllipse(Ellipse) Adds the ellipse to the sketch.
Public method AddEllipticalArc(EllipticalArc) Adds the elliptical arc to the sketch.
Public method AddEntity(Entity) Adds the entity to the sketch.
Public method AddFillet(ICurve, ICurve, bool, bool, double) Add a fillet between the two specified curves. The two curves are required to be intersecting and the flip parameters must produce a valid arc.
Public method AddLine(Point2D, Point2D) Adds a line to the sketch.
Public method AddLine(Line) Adds the line to the sketch.
Public method AddPoint(Point2D) Creates a sketch spline starting from the curve entity and adds it to the sketch.
Public method AddPoint(Point) Adds the point to the sketch.
Public method AddPolygon(Point2D, double, int, out Point, out Point, double) Adds a regular polygon to the sketch.
Public method AddRectangle(double, double, double, double, double, bool) Adds a rectangle to the sketch.
Public method AddSketchSplineFromCurveEntity(Curve) Creates a sketch spline starting from the curve entity and adds it to the sketch.
Public method AddSlot(double, double, double, double, double) Adds a slot to the sketch.
Public method AddSpline(IList<Point2D>) Create a set of sketch spline curves interpolating the given list of 2D points.
Public method CenterPoint(Arc) Returns the center point of the specified arc.
Public method CenterPoint(Circle) Returns the center point of the specified circle.
Public method CenterPoint(Ellipse) Returns the center point of the specified ellipse.
Public method ClearHistory() Erase current history (remove all undo/redo records).
Public method CreateAlignedPointsDistanceConstraint(Point, Point, double, bool, Point2D) Adds a points distance constraint.
Public method CreateAngleConstraint(Arc, double, bool, Point2D) Adds an angle constraint on the input arc.
Public method CreateAngleConstraint(Line, Line, Point2D, double, bool, Point2D) Adds an angle constraint between the two specified lines. The quadrant point allows to choose where to apply the constraint.
Public method CreateCollinearConstraint(Line, Line) Adds a collinear constraint between two lines.
Public method CreateCollinearPointsConstraint(Point, Point, Point) Adds a collinear constraint between points.
Public method CreateConcentricDistanceConstraint(Circle, Circle, bool, Point2D) Adds a distance constraint between two concentric circles.
Public method CreateDiameterConstraint(Circle, double, bool, Point2D) Adds a diameter/radius constraint on the input circle.
Public method CreateEqualConstraint(Entity, Entity, bool) Adds an equal-length constraint between two entities.
Public method CreateHorizontalConstraint(Line) Create an horizontal constraint on the input line.
Public method CreateHorizontalConstraint(Point, Point) Adds an horizontal constraints between two points.
Public method CreateHorizontalPointsDistanceConstraint(Point, Point, double, bool, Point2D) Adds a horizontal points distance constraint.
Public method CreateJoinConstraint(Point, Entity) Adds a point on entity constraint.
Public method CreateLengthConstraint(Line, double, bool, Point2D) Adds a line constraint on the input line.
Public method CreateLinesDistanceConstraint(Line, Line, double, bool, Point2D) Adds a distance constraint between two lines.
Public method CreateMidPointConstraint(Point, Entity) Adds a point on constraint, forcing the specified point to stay on the given curve.
Public method CreateMirrorConstraint(Entity, Entity, Line) Adds a mirror constraint between two entites.
Public method CreateParallelLinesConstraint(Line, Line) Adds a parallel constraint between two lines.
Public method CreatePerpendicularConstraint(Line, Line) Adds a perpendicular constraint between two lines.
Public method CreatePointAtConstraint(Point, Entity, double) Adds a point on constraint, forcing the specified point to stay on the given curve.
Public method CreatePointFixedConstraint(Point) Adds a point fixed constraint for the input point.
Public method CreatePointLineDistanceConstraint(Point, Line, double, bool, Point2D) Adds a point-line distance constraint.
Public method CreatePointOnConstraint(Point, Entity) Adds a point on constraint, forcing the specified point to stay on the given curve.
Public method CreateTangentConstraint(Entity, Entity) Adds a tangent constraint between two entities.
Public method CreateVerticalConstraint(Line) Adds a vertical constraint for the input line.
Public method CreateVerticalConstraint(Point, Point) Adds a vertical constraints between two points.
Public method CreateVerticalPointsDistanceConstraint(Point, Point, double, bool, Point2D) Adds a vertical points distance constraint.
Public method DeleteEntity(Entity) Deletes the entity and its associated constraints.
Public method DisableEdgeSelection() Disables the edge selection for the current Brep
Public method DisplayConstraintEntities(StackedLabel) Displays the entities involved for the specific constraint.
Public method DragEnd() Stops the dragging process. Throws an exception if Dragging is false.
Public method DragStart(Point2D, params Entity[]) Starts dragging the specified entities from the specified point. Throws an exception if Dragging is true.
Public method DragTo(Point2D) Drags the entities to the specified point. Throws an exception if Dragging is false.
Public method DrawOverlay(DrawSceneParams) Draws overlaying the filled region.
Public method EditExit(bool) Obsolete. Exits and regenerates and compiles the sketch entity.
Public method EditExit(exitType) Exits and regenerates and compiles the sketch entity.
Public method EnableEdgeSelection() Enables the edge selection for the current Brep
Public method EndPoint(Arc) Returns the end point of the specified arc.
Public method EndPoint(Curve) Returns the end point of the specified spline.
Public method EndPoint(EllipticalArc) Returns the end point of the specified elliptical arc.
Public method EndPoint(Line) Returns the end point of the specified line.
Public method Equals(Object) (inherited from Object).
Protected method Finalize (inherited from Object).
Public method FixEntity(Entity, bool) Fix the entity and its children.
Public method GetAllConstraintsFromEntity(Entity) Returns all the constraints in which the entity is involved.
Public method GetConstrained(VisualConstraint) Get all constrained entities.
Public method GetConstraint(Entity) Gets the constraint given a constraint entity (may be a linear dimension, an angular dimension, etc.).
Public method GetEntities(StackedLabel) Gets the entities associated with a constraint label.
Public method GetHashCode (inherited from Object).
Public method GetParentEntity(Point) Gets the parent entity of which the input point is a vertex.
Public method GetPoints(Entity) Returns the points of the specified entity. For example, for an arc the method will return the center, the start point and the end point.
Public method GetType (inherited from Object).
Public method GetVisualConstraint(Constraint) Gets the corresponding visual constraint given a sketch constraint.
Public method IsConstruction(Entity) Tells if the specified entity is a construction one.
Public method IsFixed(Entity) Tells if the curve is fixed.
Public method IsSketchEntity(Entity) Returns true if the given entity is related to the sketch, false otherwise. For example, returns false for constraint dimension entities.
Public method IsValid(Constraint) Tells if the constraint is consistent with the others sketch constraints.
Public method Map<T>(Entity) Maps the given graphical entity to its geometrical counterpart (Eyeshot -> Sketch). Throws an exception if the geometrical counterpart does not exist or if it is not of the specified type.
Public method Map<T>(SketchCurve) Maps the given geometrical entity to its graphical counterpart (Sketch -> Eyeshot). Throws an exception if the graphical counterpart does not exist or if it is not of the specified type.
Protected method MemberwiseClone (inherited from Object).
Public method Move(Point, Point3D) Moves the specified point to the given location (in world coordinates, not plane coordinates).
Public method PreparesEntitiesForMirror(List<Entity>) Prepares the input list of entities for the mirror constraint.
Public method ProjectCurve(IGCurve, bool) Project the given IGCurve into the sketch.
Public method Redo() Redo the last operation undone. If no record of previous undone operations is available, an EyeshotException is thrown. To check if this method is safe to call, use RedoReady.
Public method RedundantConstraints() Returns the collection of the redundant constraints of the active sketch.
Public method RemoveConstraint(Entity) Removes the constraint given a constraint entity (may be a linear dimension, an angular dimension, etc.).
Public method RemoveConstraint(VisualConstraint) Removes the specific constraint from the sketch.
Public method ResetCameraForSketchEditing()
Public method ResetRedoCount() Resets the number of available redo operations to zero. Used to make an undo operation permanent.
Public method SetConstruction(Entity, bool) Change the entity construction status.
Public method Solve() Solves the system.
Public method StartPoint(Arc) Returns the start point of the specified arc.
Public method StartPoint(Curve) Returns the start point of the specified spline.
Public method StartPoint(EllipticalArc) Returns the start point of the specified elliptical arc.
Public method StartPoint(Line) Returns the start point of the specified line.
Public method ToString (inherited from Object).
Public method Trim(Point) Trims the entity under the mouse cursor at its intersection points.
Public method TrimPreview(Point, out List<Entity>) Generates the entities that would be created due to trim
Public method Undo() Undo the last operation performed. If no record of previous operations is available, an EyeshotException is thrown. To check if this method is safe to call, use UndoReady.
Public method UpdateAndInvalidate(bool) Solves the sketch and regens and compiles the entities.
Top
Events
 
Name Description
Public event EditEnded Occurs when the SketchManager exits from the current editing sketch.
Public event EditStarted Occurs when the SketchManager enters in the edit mode.
Public event SketchCurveDeleted Occurs when the SketchManager links a new SketchCurve with its graphical representation into the current editing sketch.
Public event SketchCurveLinked Occurs when the SketchManager links a new SketchCurve with its graphical representation into the current editing sketch.
Public event SystemSolved Occurs every time that the equation system of the sketch is solved.
Top
Name Description
Public delegate EditEndedEventHandler Represents the method that will handle the SketchManager.EditEnded event.
Public delegate EditStartedEventHandler Represents the method that will handle the SketchManager.EditStarted event.
Public delegate SketchCurveDeletedEventHandler Represents the method that will handle the SketchManager.SketchCurveDeleted event.
Public delegate SketchCurveLinkedEventHandler Represents the method that will handle the SketchManager.SketchCurveLinked event.
Public delegate SolveEventHandler Represents the method that will handle the SketchManager.SystemSolved event.
Top
Name Description
Public enumeration exitType It represents what to do when exiting the sketch.
Public enumeration zoomFitType Sketch edit zoom fit type.
Top
devDept.Eyeshot.SketchManager

.NET Framework

Supported in: 4.7.2

In this article

Definition