Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

730dd7ab 325f a34e 2694 cfe79d1ffde9

haplokuon edited this page May 6, 2023 · 1 revision

Block Class

netDxf 3.0.0 Library

Represents a block definition.

Definition

Namespace: netDxf.Blocks
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public class Block : TableObject

VB

Public Class Block
	Inherits TableObject

C++

public ref class Block : public TableObject

F#

type Block = 
    class
        inherit TableObject
    end
Inheritance Object → DxfObjectTableObject → Block

Constructors

Block(String) Initializes a new instance of the Block class.
Block(String, IEnumerable(EntityObject)) Initializes a new instance of the Block class.
Block(String, String) Initializes a new instance of the Block class as an external reference drawing.
Block(String, IEnumerable(EntityObject), IEnumerable(AttributeDefinition)) Initializes a new instance of the Block class.
Block(String, String, Boolean) Initializes a new instance of the Block class as an external reference drawing.

Properties

AttributeDefinitions Gets the entity list of the block.
CodeName Gets the DXF object name.
(Inherited from DxfObject)
Description Gets or sets the block description.
Entities Gets the entity list of the block.
Flags Gets the block-type flags (bit-coded values, may be combined).
Handle Gets the handle assigned to the DXF object.
(Inherited from DxfObject)
IsForInternalUseOnly All blocks that starts with "*" are for internal use only.
IsReserved Gets if the table object is reserved and cannot be deleted.
(Inherited from TableObject)
IsXRef Gets if the block is an external reference.
Layer Gets or sets the block layer.
ModelSpace Gets the default *Model_Space block.
Name Gets the name of the table object.
Origin Gets or sets the block origin in world coordinates, it is recommended to always keep this value to the default Vector3.Zero.
Owner Gets the owner of the actual DXF object.
PaperSpace Gets the default *Paper_Space block.
Record Gets the block record associated with this block.
XData Gets the entity extended data.
(Inherited from DxfObject)
XrefFile Gets the external reference path name.

Methods

Clone() Creates a new Block that is a copy of the current instance.
(Overrides TableObject.Clone())
Clone(String) Creates a new Block that is a copy of the current instance.
(Overrides TableObject.Clone(String))
CompareTo(Object) Compares the current TableObject with another TableObject of the same type.
(Inherited from TableObject)
CompareTo(TableObject) Compares the current TableObject with another TableObject of the same type.
(Inherited from TableObject)
Create Creates a block from the content of a document.
Equals(Object) Check if two TableObject are equal.
(Inherited from TableObject)
Equals(TableObject) Check if two TableObject are equal.
(Inherited from TableObject)
GetHashCode Returns the hash code for this instance.
(Inherited from TableObject)
GetReferences Gets the list of DxfObjects referenced by this instance.
(Overrides TableObject.GetReferences())
GetType Gets the Type of the current instance.
(Inherited from Object)
HasReferences Checks if this instance has been referenced by other DxfObjects.
(Overrides TableObject.HasReferences())
Load(String) Creates a block from an external DXF file.
Load(String, IEnumerable(String)) Creates a block from an external DXF file.
Load(String, String) Creates a block from an external DXF file.
Load(String, String, IEnumerable(String)) Creates a block from an external DXF file.
Save(String, DxfVersion) Saves a block to a text DXF file.
Save(String, DxfVersion, Boolean) Saves a block to a DXF file.
ToString Converts the value of this instance to its equivalent string representation.
(Inherited from TableObject)

Events

AttributeDefinitionAdded  
AttributeDefinitionRemoved  
EntityAdded  
EntityRemoved  
LayerChanged  
NameChanged
(Inherited from TableObject)
XDataAddAppReg
(Inherited from DxfObject)
XDataRemoveAppReg
(Inherited from DxfObject)

Fields

DefaultModelSpaceName Default ModelSpace block name.
DefaultPaperSpaceName Default PaperSpace block name.

See Also

Reference

netDxf.Blocks Namespace

Clone this wiki locally