Share

Box2d Object


Description

The Box2d object is a mathematical utility object that represents a rectangle whose edges are always parallel to the x-y axes. A common use of the Box2d object is as a means of passing the range box information of a 2d entity and interacting with that range box.

Methods

Name Description
Contains Determines whether the specified point is contained within this Box.
Copy Creates a copy of this Box2d object. The result is entirely independent and can be edited without affecting the original Box2d object.
Expand Expands the Box on all sides by the specified distance.
Extend Extends the Box to include the specified point.
GetBoxData Get the data defining this Box.
IsDisjoint Determines whether this Box intersects the specified Box. A return value of True indicates that the box do not intersect.
PutBoxData Method that sets the data defining this Box.

Properties

Name Description
MaxPoint Property that gets and sets the maximum corner of the box.
MinPoint Property that gets and sets the minimum corner of the box.

Accessed From

BendNote.RangeBox, Border.RangeBox, Box2d.Copy, ChamferNote.RangeBox, Curve2dEvaluator.RangeBox, CustomTable.RangeBox, DefaultBorder.RangeBox, DimensionText.RangeBox, DrawingNote.RangeBox, DrawingViewHatchArea.RangeBox, DrawingViewHatchRegion.RangeBox, DrawingViewLabel.RangeBox, GeneralNote.RangeBox, HoleTable.RangeBox, HoleTag.RangeBox, ImportedDWGComponent.Crop, ImportedDWGComponentProxy.Crop, LeaderNote.RangeBox, PartsList.RangeBox, PunchNote.RangeBox, RevisionCloud.RangeBox, RevisionTable.RangeBox, SketchArc.RangeBox, SketchArcProxy.RangeBox, SketchCircle.RangeBox, SketchCircleProxy.RangeBox, SketchCircularPattern.RangeBox, SketchControlPointSpline.RangeBox, SketchControlPointSplineProxy.RangeBox, SketchEllipse.RangeBox, SketchEllipseProxy.RangeBox, SketchEllipticalArc.RangeBox, SketchEllipticalArcProxy.RangeBox, SketchEntity.RangeBox, SketchEquationCurve.RangeBox, SketchEquationCurveProxy.RangeBox, SketchFixedSpline.RangeBox, SketchFixedSplineProxy.RangeBox, SketchLine.RangeBox, SketchLineProxy.RangeBox, SketchOffsetSpline.RangeBox, SketchOffsetSplineProxy.RangeBox, SketchPoint.RangeBox, SketchPointProxy.RangeBox, SketchRectangularPattern.RangeBox, SketchSpline.RangeBox, SketchSplineHandle.RangeBox, SketchSplineHandleProxy.RangeBox, SketchSplineProxy.RangeBox, SurfaceEvaluator.ParamRangeRect, TextBox.RangeBox, TextBoxProxy.RangeBox, TitleBlock.RangeBox, TransientGeometry.CreateBox2d

Samples

Name Description
3D Curve from Parametric Curve Demonstrates the conversion of a 2d parameteric space curve into the equivalent 3d model space curve. To use this sample you must have a part open. You can select any face and 3D curves will be drawn on the face using client graphics.

Version

Introduced in version 4

Was this information helpful?