This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 409
ba10a10e b677 98ea cc86 dd6831c847e5
haplokuon edited this page May 6, 2023
·
1 revision
netDxf 3.0.0 Library
Initializes a new instance of the HeaderVariable
class.
Namespace: netDxf.Header
Assembly: netDxf (in netDxf.dll) Version: 3.0.0
C#
public HeaderVariable(
string name,
short groupCode,
Object value
)
VB
Public Sub New (
name As String,
groupCode As Short,
value As Object
)
C++
public:
HeaderVariable(
String^ name,
short groupCode,
Object^ value
)
F#
new :
name : string *
groupCode : int16 *
value : Object -> HeaderVariable
- String
- Header variable name.
- Int16
- Header variable group code.
- Object
- Header variable value.
It is very important to match the group code with its corresponding value type, check the DXF documentation for details about what group code correspond to its associated type. For example, typical groups codes are 70, 40, and 2 that correspond to short, double, and string value types, respectively.
If the header value is a Vector3 use the group code 30, if it is a Vector2 use group code 20, when the variable is written to the DXF the codes 10, 20, and 30 will be added as necessary.