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

4b0c48bd caf8 190f 8f83 d2ebfc7107bb

haplokuon edited this page May 6, 2023 · 1 revision

CreateBoundary Method

netDxf 3.0.0 Library

Creates a list of entities that represents the boundary of the hatch and optionally associates to it.

Definition

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

C#

public List<EntityObject> CreateBoundary(
	bool linkBoundary
)

VB

Public Function CreateBoundary ( 
	linkBoundary As Boolean
) As List(Of EntityObject)

C++

public:
List<EntityObject^>^ CreateBoundary(
	bool linkBoundary
)

F#

member CreateBoundary : 
        linkBoundary : bool -> List<EntityObject> 

Parameters

  Boolean
Indicates if the new boundary will be associated with the hatch, turning the associative property to true.

Return Value

List(EntityObject)
A list of entities that makes the boundary of the hatch.

Remarks

If the actual hatch is already associative, the old boundary entities will be unlinked, but not deleted from the hatch document. If linkBoundary is true, the new boundary entities will be added to the same layout and document as the hatch, in case it belongs to one, so, in this case, if you also try to add the return list to the document it will cause an error.
All entities are in world coordinates except the Polyline2D boundary path since by definition its vertexes are expressed in object coordinates.

See Also

Reference

Hatch Class
netDxf.Entities Namespace

Clone this wiki locally