> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SensorCommonBuilder Class Reference

A base class for all Sensor Builders.

Inheritance diagram for SensorCommonBuilder:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_sensor_common_builder.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=b2d46bd5f37494de379277faa988dc95)

## Public Member Functions

| Type | Name |
| - | - |
| 'bool' | [IsTemplateFileValid](#a9903334ee3f31502bf70eb52e9f9dadb) (self) Checks whether the template file is valid. |

> [accordion] Public Member Functions inherited from FeatureBuilder
>
> Public Member Functions inherited from [FeatureBuilder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md)
>
> | Type | Name |
> | - | - |
> | 'None' | [Commit](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md#a77581800008ea3179049e650e9d1787b) (self) Commits any edits that have been applied to the builder. |
> | 'None' | **ShowResult** (self) Updates the feature to reflect the result of an edit to the feature for all builders that support showing results. |

## Static Public Attributes

| Type | Name |
| - | - |
| str | [AxisSystem](#af0a012d49a5b59a4f43bb342b8c725c2) = property(fget=\_\_GetAxisSystem) Gets the Axis System of the Sensor. |
| str | [DimensionFromFile](#a0133c03caa27c4a2c2eec6f56ac87d45) = property(fget=\_\_GetDimensionFromFile, fset=\_\_SetDimensionFromFile) Gets or sets the property to enable the use of dimensions that come from File. |
| str | [DisplayPropertiesFromFile](#aa9f06ab58588bea04699f00b412161c6) = property(fget=\_\_GetDisplayPropertiesFromFile, fset=\_\_SetDisplayPropertiesFromFile) Gets or sets the property to enable the use of display properties that come from File. |
| str | [GridOriginX](#a3e462caa50357a9788b8735930dc8af0) = property(fget=\_\_GetGridOriginX, fset=\_\_SetGridOriginX) Gets or sets the grid X origin. |
| str | [GridOriginY](#a7c3aa08faef640884a10d6766ce36efe) = property(fget=\_\_GetGridOriginY, fset=\_\_SetGridOriginY) Gets or sets the grid Y origin. |
| str | [GridStepX](#a03d8d2fd56c4163a396dc0fd8a90f963) = property(fget=\_\_GetGridStepX, fset=\_\_SetGridStepX) Gets or sets the grid X step. |
| str | [GridStepY](#a2528f56fb7db94f6d20bbed9d51bde14) = property(fget=\_\_GetGridStepY, fset=\_\_SetGridStepY) Gets or sets the grid Y step. |
| str | [SensorFilter](#a187957a21db7d300e5dec39e3762d6fa) = property(fget=\_\_GetSensorFilter) Gets the sensor filter. |
| str | [ShowGrid](#a7472c93e10d87ea740d116838e5f5f50) = property(fget=\_\_GetShowGrid, fset=\_\_SetShowGrid) Gets or sets the property to enable grid preview. |
| str | [TemplateFilePath](#a2fead9d4fee3c7c05710d79edf5d4bf5) = property(fget=\_\_GetTemplateFilePath, fset=\_\_SetTemplateFilePath) Gets or sets the template file's path. |
| str | [TemplateType](#a7d7e05d22f3cf6511873f0e5d5150dbc) = property(fget=\_\_GetTemplateType) Gets or sets the template type. |
| str | [Type](#a71656f4f93df1e4a4f6dfe758863b287) = property(fget=\_\_GetType, fset=\_\_SetType) Gets or sets the type of the sensor. |
| str | [UseTemplateFile](#a529d5c46dc317113823a9225751d711a) = property(fget=\_\_GetUseTemplateFile, fset=\_\_SetUseTemplateFile) Gets or sets the property to enable the use of template file. |
| str | [WavelengthEnd](#a1d3af865fff16f6eb31305404623a867) = property(fget=\_\_GetWavelengthEnd, fset=\_\_SetWavelengthEnd) Gets or sets the wavelength ending border. |
| str | [WavelengthResolution](#a4d829d8a46f0614c7c32b78ae1602fd9) = property(fget=\_\_GetWavelengthResolution, fset=\_\_SetWavelengthResolution) Gets or sets the Wavelength resolution. |
| str | [WavelengthSampling](#a1a2c2043920b4b7bb6308cb22e73ec13) = property(fget=\_\_GetWavelengthSampling, fset=\_\_SetWavelengthSampling) Gets or sets the wavelength sampling. |
| str | [WavelengthStart](#a93c3bc11064cbd8e5885016a97877d3e) = property(fget=\_\_GetWavelengthStart, fset=\_\_SetWavelengthStart) Gets or sets the wavelength starting border. |
| str | [XEnd](#a26309a89380b2756527ec19cffef2b6c) = property(fget=\_\_GetXEnd, fset=\_\_SetXEnd) Gets or sets the Sensor X end dimension value. |
| str | [XMirroredExtent](#ae7c2faf5c62ec2baf03149375fadd672) = property(fget=\_\_GetXMirroredExtent, fset=\_\_SetXMirroredExtent) Gets the Sensor X dimension mirrored extent value. |
| str | [XResolution](#af339e4c5181343e4c3e38d92c9c05c47) = property(fget=\_\_GetXResolution, fset=\_\_SetXResolution) Gets or sets the Sensor X dimension resolution value. |
| str | [XSampling](#a9694a3d43cce188431740d9b8c364ac2) = property(fget=\_\_GetXSampling, fset=\_\_SetXSampling) Gets or sets the Sensor X dimension sampling value. |
| str | [XStart](#abcbac58872bdd9d694ee7177d1ef7973) = property(fget=\_\_GetXStart, fset=\_\_SetXStart) Gets or sets the Sensor X start dimension value. |
| str | [YEnd](#a3106ba653a070cd30ef2357bddd2cf60) = property(fget=\_\_GetYEnd, fset=\_\_SetYEnd) Gets or sets the Sensor Y end dimension value. |
| str | [YMirroredExtent](#a1a4644fb780cae70d397e455eac08e13) = property(fget=\_\_GetYMirroredExtent, fset=\_\_SetYMirroredExtent) Gets the Sensor Y dimension mirrored extent value. |
| str | [YResolution](#a213abc811c0466065f36593a1520259b) = property(fget=\_\_GetYResolution, fset=\_\_SetYResolution) Gets or sets the Sensor Y dimension resolution value. |
| str | [YSampling](#a223ff92346c9c64903238723f549419b) = property(fget=\_\_GetYSampling, fset=\_\_SetYSampling) Gets or sets the Sensor Y dimension sampling value. |

> [accordion] Static Public Attributes inherited from FeatureBuilder
>
> Static Public Attributes inherited from [FeatureBuilder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md)
>
> | Type | Name |
> | - | - |
> | str | [Feature](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md#af5dac7005c95ef44c2b66d7270709d0b) = property(fget=\_\_GetFeature) Returns the feature being edited, or the created feature if the builder is being used in creation mode. |
> | str | [FullName](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md#a6aac8aea55e1f962045d07a12b6569ea) = property(fget=\_\_GetFullName) Gets the full name of the feature being edited. |
> | str | [Name](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md#a19218d0239b929ca8aecfa629d0185d0) = property(fget=\_\_GetName, fset=\_\_SetName) Gets or sets the name of the feature being edited. |
> | str | [NameWithContext](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r1/class_speos_n_x_1_1_feature_builder.md#a89ee075a30b71ff6e3192d6bd6dd5515) = property(fget=\_\_GetNameWithContext) Gets the name with context of the feature being edited. |

## Detailed Description

A base class for all Sensor Builders.

A Builder is an object that is used to create and edit Features.

This is an abstract class that provides the basic functionality common to all builders. See the Builder subclasses for details of application-specific builders.

This is an abstract class, and cannot be instantiated.

## Member Function Documentation

### IsTemplateFileValid()

```python theme={null}
'bool' IsTemplateFileValid(self)
```

Checks whether the template file is valid.

**Returns**

True: The template file is valid.\
&#x20;False: The template file is not valid.

## Member Data Documentation

### AxisSystem

```python theme={null}
str AxisSystem = property(fget=__GetAxisSystem)
```

`static`

Gets the Axis System of the Sensor.

**Value type**: AxisSystem object.

### DimensionFromFile

```python theme={null}
str DimensionFromFile = property(fget=__GetDimensionFromFile, fset=__SetDimensionFromFile)
```

`static`

Gets or sets the property to enable the use of dimensions that come from File.

True: Uses the following values from the XMP template: type, X and Y size, Wavelength values.\
&#x20;False: Does not use the dimension from file.\


**Value type**: Boolean.\


The default value is False.

### DisplayPropertiesFromFile

```python theme={null}
str DisplayPropertiesFromFile = property(fget=__GetDisplayPropertiesFromFile, fset=__SetDisplayPropertiesFromFile)
```

`static`

Gets or sets the property to enable the use of display properties that come from File.

True: Uses all the grid related values from the .xml file.\
&#x20;False: Does not use the Display properties from file.\


**Value type**: Boolean.\


The default value is False.

### GridOriginX

```python theme={null}
str GridOriginX = property(fget=__GetGridOriginX, fset=__SetGridOriginX)
```

`static`

Gets or sets the grid X origin.

**Value type**: Double.\


The default value is 0.0.

### GridOriginY

```python theme={null}
str GridOriginY = property(fget=__GetGridOriginY, fset=__SetGridOriginY)
```

`static`

Gets or sets the grid Y origin.

**Value type**: Double.\


The default value is 0.0.

### GridStepX

```python theme={null}
str GridStepX = property(fget=__GetGridStepX, fset=__SetGridStepX)
```

`static`

Gets or sets the grid X step.

**Value type**: Double.\
&#x20;**Range**: The value must be superior to 0.\


The default value is 10.0.

### GridStepY

```python theme={null}
str GridStepY = property(fget=__GetGridStepY, fset=__SetGridStepY)
```

`static`

Gets or sets the grid Y step.

**Value type**: Double.\
&#x20;**Range**: The value must be superior to 0.\


The default value is 10.0.

### SensorFilter

```python theme={null}
str SensorFilter = property(fget=__GetSensorFilter)
```

`static`

Gets the sensor filter.

**Value type**: SensorFilter object.

### ShowGrid

```python theme={null}
str ShowGrid = property(fget=__GetShowGrid, fset=__SetShowGrid)
```

`static`

Gets or sets the property to enable grid preview.

True: Displays a grid on the sensor.\
&#x20;False: Does not display a grid on the sensor.\


**Value type**: Boolean.\


The default value is True.

### TemplateFilePath

```python theme={null}
str TemplateFilePath = property(fget=__GetTemplateFilePath, fset=__SetTemplateFilePath)
```

`static`

Gets or sets the template file's path.

**Value type**: String.\


The default value is an empty string.

### TemplateType

```python theme={null}
str TemplateType = property(fget=__GetTemplateType)
```

`static`

Gets or sets the template type.

The values are:\
&#x20;0 - None\
&#x20;1 - Measure\
&#x20;2 - Template \


**Value type**: Integer.\


The default value is 0.

### Type

```python theme={null}
str Type = property(fget=__GetType, fset=__SetType)
```

`static`

Gets or sets the type of the sensor.

The values are:\
&#x20;0 - Photometric, results in cd.\
&#x20;1 - Colorimetric, color results in cd or W/sr.\
&#x20;2 - Radiometric, results in W/sr.\
&#x20;3 - Spectral, results in cd or W/sr.\


**Value type**: Integer.\


The default value is 0.

### UseTemplateFile

```python theme={null}
str UseTemplateFile = property(fget=__GetUseTemplateFile, fset=__SetUseTemplateFile)
```

`static`

Gets or sets the property to enable the use of template file.

True: Enables Template File. \
&#x20;False: Disables Template File. \


**Value type**: Boolean.

### WavelengthEnd

```python theme={null}
str WavelengthEnd = property(fget=__GetWavelengthEnd, fset=__SetWavelengthEnd)
```

`static`

Gets or sets the wavelength ending border.

**Prerequisite**: The Type property must be 1 or 3.\


The sensor does not take account wavelengths beyond the borders that you define.\


**Value type**: Double (in nm).\


The default value is 700.0 nm.

### WavelengthResolution

```python theme={null}
str WavelengthResolution = property(fget=__GetWavelengthResolution, fset=__SetWavelengthResolution)
```

`static`

Gets or sets the Wavelength resolution.

**Prerequisite**: The Type property must be 1 or 3.\


**Value type**: Double.\


### WavelengthSampling

```python theme={null}
str WavelengthSampling = property(fget=__GetWavelengthSampling, fset=__SetWavelengthSampling)
```

`static`

Gets or sets the wavelength sampling.

**Prerequisite**: The Type property must be 1 or 3.\


**Value type**: Integer.\
&#x20;**Range**: The value must be superior to 0.\


The default value is 13.

### WavelengthStart

```python theme={null}
str WavelengthStart = property(fget=__GetWavelengthStart, fset=__SetWavelengthStart)
```

`static`

Gets or sets the wavelength starting border.

**Prerequisite**: The Type property must be 1 or 3.\


The sensor does not take account wavelengths beyond the borders that you define.\


**Value type**: Double (in nm).\


The default value is 400.0 nm.

### XEnd

```python theme={null}
str XEnd = property(fget=__GetXEnd, fset=__SetXEnd)
```

`static`

Gets or sets the Sensor X end dimension value.

**Value type**: Double (in mm).\


The default value is 50.0 mm.

### XMirroredExtent

```python theme={null}
str XMirroredExtent = property(fget=__GetXMirroredExtent, fset=__SetXMirroredExtent)
```

`static`

Gets the Sensor X dimension mirrored extent value.

True: XStart == -XEnd, you can only change the XEnd value.\
&#x20;False: XStart and XEnd can have different value.\


**Value type**: Boolean.\


The default value is False.

### XResolution

```python theme={null}
str XResolution = property(fget=__GetXResolution, fset=__SetXResolution)
```

`static`

Gets or sets the Sensor X dimension resolution value.

**Value type**: Double.

### XSampling

```python theme={null}
str XSampling = property(fget=__GetXSampling, fset=__SetXSampling)
```

`static`

Gets or sets the Sensor X dimension sampling value.

**Value type**: Integer.\


The default value is 100.

### XStart

```python theme={null}
str XStart = property(fget=__GetXStart, fset=__SetXStart)
```

`static`

Gets or sets the Sensor X start dimension value.

**Value type**: Double (in mm).\


The default value is -50.0 mm.

### YEnd

```python theme={null}
str YEnd = property(fget=__GetYEnd, fset=__SetYEnd)
```

`static`

Gets or sets the Sensor Y end dimension value.

**Value type**: Double (in mm).\


The default value is 50.0 mm.

### YMirroredExtent

```python theme={null}
str YMirroredExtent = property(fget=__GetYMirroredExtent, fset=__SetYMirroredExtent)
```

`static`

Gets the Sensor Y dimension mirrored extent value.

True: YStart == -YEnd, you can only change the YEnd value.\
&#x20;False: YStart and YEnd can have different value.\


**Value type**: Boolean.\


The default value is False.

### YResolution

```python theme={null}
str YResolution = property(fget=__GetYResolution, fset=__SetYResolution)
```

`static`

Gets or sets the Sensor Y dimension resolution value.

**Value type**: Double.

### YSampling

```python theme={null}
str YSampling = property(fget=__GetYSampling, fset=__SetYSampling)
```

`static`

Gets or sets the Sensor Y dimension sampling value.

**Value type**: Integer.\


The default value is 100.

The documentation for this class was generated from the following file:

* **SpeosNX.py**
