Block Class

Block definition. Blocks have to be added to the master block array Environment.Blocks and inserted in the Environment.Entities list using the BlockReference entity.

A block in Eyeshot is a collection of entities that create an object, grouped together to make one selectable object. Selecting one particular entity will select all entities contained within the block. They can be moved, rotated, mirrored etc and will always be treated by Eyeshot as one whole object.

Blocks are an invaluable way of quickly arranging complex pieces of a model. Selecting the object is a breeze, it is no longer necessary to painstakingly select each individual entities. Blocks also make it easy to duplicate the same object throughout a drawing, and as Eyeshot recognizes that each copy of a block is identical to the previous, the memory and processing time required by Eyeshot is reduced.

Public Class Block 
Implements IEquatable(Of Block), _ 
ISerializable, _ 
IDisposable, _ 
ICloneable, _ 
IKeyedCollectionDisposableItem(Of Block)
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Name Description
Public constructor Block(string, Point3D) Base point constructor.
Public constructor Block(string, Point3D, linearUnitsType) Base point and units constructor.
Public constructor Block(string, double, double, double) Base point individual coordinates constructor.
Top
Name Description
Public property BasePoint Gets or sets block definition base point.
Public property ConvexHull The convex hull of the surface.
Public property CustomData Gets or sets a custom object that will be stored to the Eyeshot Proprietary File Format.
Public property Description Gets or sets a description text for this block definition.
Public property Entities Gets entity collection.
Public property FullPath Gets or sets the forced full path for saving the file representing this block. Default value is null/Nothing.
Public property Groups Groups collection.
Public property IsResolved If true, the block is resolved. In DWG/DXF import the Block could be defined as an external reference (XRef), when true it was successfully located.
Public property MassUnits Gets or sets the block mass units of measurement.
Public property Name Gets or sets block name.
Public property Units Gets or sets block unit system.
Top
Methods
 
Name Description
Public method Clone() Creates a deep copy of the Block (cloning all its entities).
Public method Compile(CompileParams) Compiles the block entities.
Public method ConvertToSurrogate()
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Equals(Block) Compares block names ignoring cases.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode()
Public method GetKey() Gets the key for the item of the collection.
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Public method GetShallowCopy() Creates a deep copy of the Block (without cloning all its entities).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetXElement(string, StringBuilder) For internal use only.
Public method GroupSelection() Creates a single unit from selected entities.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method OnKeyChanged(string, string) When the Name changes I need to notify it to the related keyed collections before changing it.
Public method SetKey(string) Sets the key for the item of the collection.
Public method ToString()
Public method Ungroup(int) Removes the group status from the specified group.
Top
Events
 
Name Description
Public event KeyChanged Occurs when the Name changes.
Top
Fields
 
Name Description
Protected field _convexHull
Top
devDept.Eyeshot.Block

.NET Framework

Supported in: 4.8

In this article

Definition