# NxAttrDimDef Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

Layout for `NxAttrDimDef`.

## Inheritance

* System.Object
  * [AbstractStructure](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AbstractStructure.htm)
    * NxAttrDimDef

      [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAttrDimDef.htm)
      #### Derived Classes
      * [HyperCubeAttrDimDef](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.Visualizations.HyperCubeAttrDimDef.htm)

## Syntax

```
[ValueClass]
public class NxAttrDimDef : AbstractStructure, IDisposable, INxAttrDimDef, IAbstractStructure
```

## Constructors

| Name | Description |
| --- | --- |
| [NxAttrDimDef()](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAttrDimDef.-ctor.htm#Qlik_Engine_NxAttrDimDef__ctor) | Creates an instance of the NxAttrDimDef class |

## Properties

| Name | Description |
| --- | --- |
| [Attribute](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAttrDimDef.Attribute.htm#Qlik_Engine_NxAttrDimDef_Attribute) | If set to true, this attribute will not affect the number of rows in the cube.<br><br>JSON property name: qAttribute |
| [Def](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAttrDimDef.Def.htm#Qlik_Engine_NxAttrDimDef_Def) | Expression or field name.<br><br>JSON property name: qDef |
| [LibraryId](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAttrDimDef.LibraryId.htm#Qlik_Engine_NxAttrDimDef_LibraryId) | LibraryId for dimension.<br><br>JSON property name: qLibraryId |
| [SortBy](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAttrDimDef.SortBy.htm#Qlik_Engine_NxAttrDimDef_SortBy) | Sorting.<br><br>JSON property name: qSortBy |