EntityList Class

Entity collection.
Public Class EntityList 
Inherits EyeshotDisposableCollection(Of Entity
Implements ISelectable
This language is not supported or no code example is available.
public class EntityList : EyeshotDisposableCollection<Entity>, 
ISelectable
This language is not supported or no code example is available.
Name Description
Public constructor EntityList() Special constructor, can be used when annotation entities (Text, Dimension, etc.) are not involved.
Top
Name Description
Public property BoxMax Gets the maximum 3D extent of the block.
Public property BoxMin Gets the minimum 3D extent of the block.
Public property BoxSize Gets the 3D extent of the block.
Public property Capacity (inherited from EyeshotCollection<T>).
Public property Count Gets the number of items actually contained in the collection. (inherited from EyeshotCollection<T>).
Public property FrontFacingOnly Accurate transparency. If true, skips back facing semi-tranparent triangles drawing, increasing the FPS rate.
Public property IsReadOnly Gets a value indicating whether the collection is read-only. (inherited from EyeshotCollection<T>).
Public property Item(int) Gets or sets the item at the specified index.
Public property MaxCandidates Accurate transparency. This parameter affects transparency pre-processing and redrawing speed. Valid values are between 1 and the total number of semi-transparent triangles. The lower is this value the lower will be the time need for pre-processing, penalizing redrawing speed. Higher values normally improve the FPS rate.
Top
Methods
 
Name Description
Public method Add(Entity, int) Obsolete. Adds one Entity at the end of this collection using the specified layer.
Public method Add(Entity, int, Color) Obsolete. Adds one Entity at the end of this collection using the specified layer and color.
Public method Add(Entity) Adds one Entity at the end of this collection.
Public method Add(Entity, Color) Adds one Entity at the end of this collection using the specified color.
Public method Add(Entity, string) Adds one Entity at the end of this collection using the specified the layer.
Public method Add(Entity, string, Color) Adds one Entity at the end of this collection using the specified layer and color.
Public method AddRange(IEnumerable<T>) Adds the items of the specified collection to the end of this collection. (inherited from EyeshotDisposableCollection<T>).
Public method AddRange(IEnumerable<T>, RegenOptions) (inherited from EyeshotDisposableCollection<T>).
Public method AddRange<T>(IEnumerable<T>, int) Obsolete. Adds the entities of the specified collection to the end of this collection using the specified layer.
Public method AddRange<T>(IEnumerable<T>, int, Color) Obsolete. Adds the entities of the specified collection to the end of this collection using the specified layer and color.
Public method AddRange<T>(IEnumerable<T>, Color) Adds the entities of the specified collection to the end of this collection using the specified layer.
Public method AddRange<T>(IEnumerable<T>, string) Adds the entities of the specified collection to the end of this collection using the specified layer.
Public method AddRange<T>(IEnumerable<T>, string, Color) Adds the entities of the specified collection to the end of this collection using the specified layer.
Public method Static AdjustBlockReferenceBlockNames(Dictionary<StringString>, IList<Entity>) Updates the BlockReferences block names according to the specified mapping.
Public method Clear() Removes all items from the collection.
Public method ClearSelection() Clears selection.
Protected method CombineBoundingBox(Entity)
Protected method CombineBoundingBox(IEnumerable<Entity>)
Public method Contains(T) Determines whether an item is in the collection. (inherited from EyeshotCollection<T>).
Public method ConvertToLinearPaths(Text, double) Converts the text outlines to LinearPath.
Public method ConvertToLinearPaths(Text, double, out LinearPath[], out LinearPath[][]) Converts the text outlines to LinearPath, separating outer and inner loops.
Public method CopySelection() Copies selected entities into the clipboard.
Public method CopyTo(T[], int) Copies the entire collection to a compatible one-dimensional array. (inherited from EyeshotCollection<T>).
Public method CutSelection() Cut selected entities into the clipboard.
Protected method DeSerialize(string)
Public method DeleteSelected() Delete selected Entities.
Public method Equals(Object) (inherited from Object).
Public method Exists(Predicate<T>) Determines whether this collection contains elements that match the conditions defined by the specified predicate. (inherited from EyeshotCollection<T>).
Public method Explode(BlockReference, bool, bool) Returns the block reference individual entity list.
Public method Explode(bool) Recursively explodes all BlockReference objects and clears the collection.
Protected method Finalize (inherited from Object).
Public method Find(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindAll(Predicate<T>) Retrieves all the elements that match the conditions defined by the specified predicate. (inherited from EyeshotCollection<T>).
Public method FindIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindIndex(int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that extends from the specified index to the last element. (inherited from EyeshotCollection<T>).
Public method FindIndex(int, int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that starts at the specified index and contains the specified number of elements. (inherited from EyeshotCollection<T>).
Public method FindLast(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindLastIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire collection. (inherited from EyeshotCollection<T>).
Public method FindLastIndex(int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in this collection that extends from the first element to the specified index. (inherited from EyeshotCollection<T>).
Public method FindLastIndex(int, int, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in this collection that contains the specified number of elements and ends at the specified index. (inherited from EyeshotCollection<T>).
Public method ForEach(Action<T>) Performs the specified action on each element of the collection. (inherited from EyeshotCollection<T>).
Public method GetEnumerator() (inherited from EyeshotCollection<T>).
Public method GetHashCode (inherited from Object).
Public method GetStats() Get the statistics.
Public method GetStats(BlockKeyedCollection, out int, out int, out int) Get the statistics.
Public method GetStats(BlockKeyedCollection, bool, bool) Get the statistics.
Public method GetStats(bool, bool, bool) Get the statistics.
Public method GetType (inherited from Object).
Public method IndexOf(T) (inherited from EyeshotCollection<T>).
Public method Insert(int, Entity)
Public method Insert(double, double, double, string, double) Insert a block into current 3D scene.
Public method InsertRange(int, IEnumerable<Entity>)
Public method InvertSelection() Inverts selection.
Protected method MemberwiseClone (inherited from Object).
Public method Paste() Pastes copied entities from the clipboard.
Public method Regen(RegenOptions) Regens and compiles only entities that need it. Each entity is automatically regenerated and compiled when added to the Workspace.Blocks or Block.Entities collection. You need to call this function only when you change/transform an entity already in these collections.
Public method RegenAllCurved(RegenOptions) Regens all curved entities (Circle, Arc, Ellipse, EllipticalArc, Curve, Surface) to uniformize the visual refinement.
Public method RegenAllCurved(double, double, RegenOptions) Regens all curved entities (Circle, Arc, Ellipse, EllipticalArc, Curve, Surface) to uniformize the visual refinement.
Public method Remove(Entity) Removes the first occurrence of a specific entity from this collection.
Public method RemoveAll(Predicate<Entity>) Removes all the entities that match the conditions defined by the specified predicate.
Public method RemoveAt(int) Removes the entity at the specified index of this collection.
Public method RemoveRange(int, int) Removes a range of entities from this collection.
Public method Static ReplaceBlockNames(Dictionary<StringString>, IList<Entity>, ref BlockKeyedCollection) Replaces the block names in the BlockReference and Block objects found in the given entities and blocks with the ones specified by the mapping.
Public method Static ReplaceBlockNames<T>(Dictionary<StringString>, IList<Entity>, ref BlockKeyedCollection) Replaces the block names in the BlockReference and Block objects found in the given entities and blocks with the ones specified by the mapping.
Public method Reverse() Reverses the order of the items in the entire collection. (inherited from EyeshotCollection<T>).
Public method Rotate(double, Vector3D, Point3D) Rotates all the entities in this collection around an arbitrary axis by the specified angle.
Public method Rotate(double, Point3D, Point3D) Rotates all the entities in this collection around an arbitrary axis by the specified angle.
Public method Rotate(double, Vector3D) Rotates all the entities in this collection around an arbitray axis by the specified angle.
Public method Scale(Point3D, double, double, double) Scales all the entities in this collection of the specified scale factor.
Public method Scale(Point3D, double) Scales all the entities in this collection of the specified scale factor.
Public method Scale(Vector3D) Scales all the entities in this collection of the specified scale factor.
Public method Scale(double) Scales all the entities in this collection of the specified scale factor.
Public method Scale(double, double, double) Scales all the entities in this collection of the specified scale factor.
Public method SelectAll() Selects all selectable and visible entities.
Protected method Serialize(object)
Public method Sort(IComparer<T>) Sorts the items in the entire collection. (inherited from EyeshotCollection<T>).
Public method SynchronizeAttributes(IList<BlockReference>) Synchronizes AttributeReference entities of the given BlockReference entities with the data of the Attribute entities contained in their referenced blocks.
Public method SynchronizeAttributes(string) Synchronizes AttributeReference entities of the BlockReference referring to the blockName block with the data of its Attribute entities.
Public method ToString() (inherited from EyeshotCollection<T>).
Public method Translate(Vector3D) Translates all the entities in the collection.
Public method Translate(double, double, double) Translates all the entities in this collection.
Public method UpdateBoundingBox() Computes the entities bounding box.
Public method WriteCSharp(string) Experimental feature to write curves in C# programming language to a text file.
Top
Fields
 
Name Description
Internal protected (Protected Friend) field EyeshotDisposableCollection.Workspace The Workspace related to the collection. (inherited from EyeshotDisposableCollection<T>).
Top
Remarks
 
When overriding a method of this class, never forget to call its base class implementation.

.NET Framework

Supported in: 4.7.2

In this article

Definition