Class vdInsert
- Namespace
- VectorDraw.Professional.vdFigures
- Assembly
- VectorDraw.Professional.dll
Represents a block reference (insert) inside a drawing.
The vdInsert type encapsulates the behavior required to place, transform and render a reference to a vdBlock. It supports insertion point, per-axis scaling, rotation, extrusion, arraying (rows/columns), attribute handling (vdAttrib via Attributes), and an optional clipping boundary (ClipBoundary).
public sealed class vdInsert : vdFigure, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vdInsert
- Implements
- Inherited Members
Examples
See the vdBlock type for examples of creating blocks and inserting them using vdInsert.
Constructors
- vdInsert()
Initializes the vdInsert object.
- vdInsert(vdDocument)
Initializes a new instance of the vdInsert object and registers it to the passed Document.
- vdInsert(vdDocument, vdBlock, gPoint, double, double, double, double)
Initializes a new instance of the vdInsert object and registers it to the passed Document.
Properties
- AlignToView
A boolean value that defines if the plane of the object is relative to the current view.
- AlignToViewSize
Get/Set the height of the object in output Device millimeters for positive or hundreds of millimeters for negative.
- Attributes
Represents the Attributes collection of the vdInsert object.
- Block
Get/Set the vdBlock object which refers to the vdInsert object.
- BoundingBox
Gets the Bounding Box of the vdInsert object in WorldCoordinate System.
- ClipBoundary
A boundary curve in World Coordinate System that will clip the vdInsert object and only the inside of the curve will be drawn.
- ColumnDist
Get/Set The Column Distance between the copied vdInsert objects.
- Columns
Get/Set the number of Columns that the vdInsert object will be copied.
- Draw3DFlag
Get/Set a property value used when drawing an object in 3d.
- ECSMatrix
Gets the transformation Matrix that converts coordinates from the object's local coordinate system (object coordinate system, OCS) to the World Coordinate System (WCS).
- ExtrusionVector
Get/Set the the 3D Vector extrusion direction of the vdInsert object.
- FadeEffect
Get/Set the color Fading effect percentage close to the background color of output rendering.
- InsertionPoint
Get/Set the Insertion Point of the vdInsert object in World Coordinative System.
- ReferenceObj
The reference Object of the vdDimension
- Rotation
Get/Set the Rotation of the vdInsert object in Radians.
- RowDist
Get/Set The Row Distance between the copied vdInsert objects.
- Rows
Get/Set the number of Rows that the vdInsert object will be copied.
- Xscale
Get/Set the X Scale Factor of the vdInsert object.
- Yscale
Get/Set the Y Scale Factor of the vdInsert object.
- Zscale
Get/Set the Z Scale Factor of the vdInsert object.
- param1
This is not used for this object
Methods
- CreateDefaultAttributes()
Creates an attribute for every attribute definition that the block of the insert has.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdInsert object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- Draw(vdRender)
Called in order to draw the object in a specified vdRender object.
- DrawGrip(int, Box, vdRender)
Overriden function in order to draw the center move grip differently.
- Explode()
Returns a collection of the entities the vdBlock of the vdInsert object has.
- GetCompareHash()
Returns a unique 32 bit integer value according to the object type and its properties values
- GetGripPoints()
A function returning the grip points of the object.
- GetOutLine()
overrides the GetOutLine()
- GetTableDependecies(vdTableDependeciesArgs)
Fills the passed vdTableDependeciesArgs args with all the table references of this object (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc).
- GetValidGripPointsItems()
Returns the number of valid grip points of the object. Must return the same number of points as the GetGripPoints() method.
- InitializeProperties()
Resets the properties of the vdInsert object to the Default values.
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- IntersectWith(vdFigure, VdConstInters, gPoints)
Finds the intersection points of a vdInsert object with another object.
- Invalidate()
Invalidates the object's Bounding Box and causes the control to be redrawn in this region.
- MatchProperties(vdPrimary, vdDocument)
Matches all the common properties from an object and sets them to this object.
- MoveGripPointsAt(Int32Array, double, double, double)
This function is intended to be called during a grip edit of the vdInsert object.
- OnDocumentSelected(vdDocument)
This method is called when the object is inserted in a Document for the first time.
- OnOwnerChanged()
This method is called when the object's owner is changed.
- Serialize(Serializer)
This Function is called when saving the vdInsert object to vdml format.
- SetAttribValue(string, string)
Sets a value to an existing attribute of the insert's block.
- ShouldBeTransformed(vdSelection, bool)
This method is used in order to determine what should happen when a transformBy occurs in a collection.
- ToString()
Gets a System.String that represents the type and the Block's Name of the vdInsert Object.
- Transformby(Matrix)
Transforms all geometrical properties of this object by the specified Matrix.
- Update()
Updates the object after change of properties.
- getOsnapPoints(Matrix, OsnapMode, gPoint, gPoint, int, OsnapPoints)
Overrrides the getOsnapPoints(Matrix, OsnapMode, gPoint, gPoint, int, OsnapPoints).