> ## 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.

# SpeosPatternBuilder Class Reference

Represents a Speos pattern builder.

Inheritance diagram for SpeosPatternBuilder:

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

## Static Public Attributes

| Type | Name |
| - | - |
| str | [NumberOfRay](#a1811cd5b1ac3b0bd6e780bce2adfe042) = property(fget=\_\_GetNumberOfRay, fset=\_\_SetNumberOfRay) Gets or sets the number of rays. |
| str | [OneLayerPerInstance](#ab24ca1c352bf77ba8740d79858d6fa2c) = property(fget=\_\_GetOneLayerPerInstance, fset=\_\_SetOneLayerPerInstance) Gets or sets the property to enable/disable one layer per instance. |
| str | [OneLayerPerSource](#ae7aa6dd8b1bfaff2908ed9f25783c946) = property(fget=\_\_GetOneLayerPerSource, fset=\_\_SetOneLayerPerSource) Gets or sets the property to enable/disable one layer per source. |
| str | [Origins](#a4b072293f37e4db7570153b2d65b496f) = property(fget=\_\_GetOrigins, fset=\_\_SetOrigins) Gets or sets the origin coordinate systems. |
| str | [PatternFilePassword](#a9a0ed1de41cc0ad2f9eaecb650c351b7) = property(fset=\_\_SetPatternFilePassword) Sets the pattern file password. |
| str | [PatternFilePath](#a381b9f9b8adf1001987c9017e0e6047e) = property(fget=\_\_GetPatternFilePath, fset=\_\_SetPatternFilePath) Gets or sets the property pattern file path. |
| str | [PreviewMode](#af000d33c17bc2049aded27ce88b25ec9) = property(fget=\_\_GetPreviewMode, fset=\_\_SetPreviewMode) Gets or sets the preview mode. |
| str | [RayFileData](#a3e7228c07824410503a15c4370c1c00b) = property(fget=\_\_GetRayFileData) Returns the ray file data object. |
| str | [RayFileFlux](#aca19f0643dca83d85a2956a24f8878b1) = property(fget=\_\_GetRayFileFlux, fset=\_\_SetRayFileFlux) Gets or sets the flux of the ray file source. |
| str | [RayFileFluxFromFile](#a3b1e2cd013f1de188a3be2d6680321e4) = property(fget=\_\_GetRayFileFluxFromFile, fset=\_\_SetRayFileFluxFromFile) Gets or sets the property to enable fetching the flux from file. |
| str | [RayFileFluxUnit](#ad971475f4158e2892d3270726b0cecf9) = property(fget=\_\_GetRayFileFluxUnit, fset=\_\_SetRayFileFluxUnit) Gets or sets the flux unit of the ray file source. |
| str | [RayFileSpectrumType](#a64adac973675b19e2654171dfa67c719) = property(fget=\_\_GetRayFileSpectrumType, fset=\_\_SetRayFileSpectrumType) Gets or sets the spectrum type. |
| str | [RayFileTemperature](#ade7cb3a85114414096c67f36ed5720b1) = property(fget=\_\_GetRayFileTemperature, fset=\_\_SetRayFileTemperature) Gets or sets the temperature. |
| str | [RayFileWavelength](#a605593aa31e6ab2d228cc0bc31a91e06) = property(fget=\_\_GetRayFileWavelength, fset=\_\_SetRayFileWavelength) Gets or sets the wavelength. |
| str | [RayLength](#a24786b401f788b91236f7c5238005822) = property(fget=\_\_GetRayLength, fset=\_\_SetRayLength) Gets or sets the ray length. |
| str | [SpectrumFilePath](#a92b012ddaebe46fb4504668c118ac6ab) = property(fget=\_\_GetSpectrumFilePath, fset=\_\_SetSpectrumFilePath) Gets or sets the spectrum file path. |

> [accordion] Static Public Attributes inherited from FeatureBuilder
>
> Static Public Attributes inherited from [FeatureBuilder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_feature_builder.md)
>
> | Type | Name |
> | - | - |
> | str | [Feature](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_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-r2/class_speos_n_x__2412_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-r2/class_speos_n_x__2412_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-r2/class_speos_n_x__2412_1_1_feature_builder.md#a89ee075a30b71ff6e3192d6bd6dd5515) = property(fget=\_\_GetNameWithContext) Gets the name with context of the feature being edited. |
> | str | [Status](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_feature_builder.md#abfd5ba295bea008a0edf2f1a85bc6368) = property(fget=\_\_GetStatus) Returns the status of the feature being edited. |

## Properties

| Type | Name |
| - | - |
| | **thisown** = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |

> [accordion] Properties inherited from FeatureBuilder
>
> Properties inherited from [FeatureBuilder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_feature_builder.md)
>
> | Type | Name |
> | - | - |
> | | **thisown** = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |

> [accordion] Properties inherited from Builder
>
> Properties inherited from [Builder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_builder.md)
>
> | Type | Name |
> | - | - |
> | | **thisown** = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |

## Additional Inherited Members

> [accordion] Public Member Functions inherited from FeatureBuilder
>
> Public Member Functions inherited from [FeatureBuilder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_feature_builder.md)
>
> | Type | Name |
> | - | - |
> | 'None' | **ShowResult** (self) Updates the feature to reflect the result of an edit to the feature for all builders that support showing results. |

> [accordion] Public Member Functions inherited from Builder
>
> Public Member Functions inherited from [Builder](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_builder.md)
>
> | Type | Name |
> | - | - |
> | 'None' | [Commit](https://developer.synopsys.com/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_builder.md#a77581800008ea3179049e650e9d1787b) (self) Commits any edits that have been applied to the builder. |

## Detailed Description

Represents a Speos pattern builder.

The Speos pattern builder is used to create and edit Speos pattern features.\


To create a new instance of this class, use FeatureCollection::CreateSpeosPatternBuilder

## Member Data Documentation

### NumberOfRay

```python theme={null}
str NumberOfRay = property(fget=__GetNumberOfRay, fset=__SetNumberOfRay)
```

`static`

Gets or sets the number of rays.

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


The default value is 100.

### OneLayerPerInstance

```python theme={null}
str OneLayerPerInstance = property(fget=__GetOneLayerPerInstance, fset=__SetOneLayerPerInstance)
```

`static`

Gets or sets the property to enable/disable one layer per instance.

True: Enables one layer per instance.\
&#x20;False: Disables one layer per instance.\


**Prerequisite**: The Pattern file must be a Lightbox file.\


**Value type**: Boolean.\


The default value is True.

### OneLayerPerSource

```python theme={null}
str OneLayerPerSource = property(fget=__GetOneLayerPerSource, fset=__SetOneLayerPerSource)
```

`static`

Gets or sets the property to enable/disable one layer per source.

True: Enables one layer per source.\
&#x20;False: Disables one layer per source.\


**Value type**: Boolean.\


The default value is False.

### Origins

```python theme={null}
str Origins = property(fget=__GetOrigins, fset=__SetOrigins)
```

`static`

Gets or sets the origin coordinate systems.

This property takes/returns a list of NX Datum System feature tags.\


**Value type**: List of integer (NX Tags).\


The default value is an empty list.

### PatternFilePassword

```python theme={null}
str PatternFilePassword = property(fset=__SetPatternFilePassword)
```

`static`

Sets the pattern file password.

**Prerequisite**: The Pattern file must be a Lightbox file.\


**Value type**: String.\


The default value is an empty string.

### PatternFilePath

```python theme={null}
str PatternFilePath = property(fget=__GetPatternFilePath, fset=__SetPatternFilePath)
```

`static`

Gets or sets the property pattern file path.

**Value type**: String.\


The default value is an empty file path (string).

### PreviewMode

```python theme={null}
str PreviewMode = property(fget=__GetPreviewMode, fset=__SetPreviewMode)
```

`static`

Gets or sets the preview mode.

The values are:\
&#x20;0 - Meshing.\
&#x20;1 - BoundingBox.\


**Value type**: Integer.\


The default value is Meshing (0).

### RayFileData

```python theme={null}
str RayFileData = property(fget=__GetRayFileData)
```

`static`

Returns the ray file data object.

**Value type**: CRayFileData.\
&#x20;This object allows to read data from a ray file.\


### RayFileFlux

```python theme={null}
str RayFileFlux = property(fget=__GetRayFileFlux, fset=__SetRayFileFlux)
```

`static`

Gets or sets the flux of the ray file source.

**Prerequisite**: The Pattern file must be a ray file.\


**Value type**: Double (in lumen or watt).\
&#x20;**Range**: The value must be superior to 0.0.\


By default the value comes from the ray file, otherwise value is 683. lumen.

### RayFileFluxFromFile

```python theme={null}
str RayFileFluxFromFile = property(fget=__GetRayFileFluxFromFile, fset=__SetRayFileFluxFromFile)
```

`static`

Gets or sets the property to enable fetching the flux from file.

True: Enables fetching the flux from file.\
&#x20;False: Disables fetching the flux from file.\


**Value type**: Boolean.\


The default value is True.

### RayFileFluxUnit

```python theme={null}
str RayFileFluxUnit = property(fget=__GetRayFileFluxUnit, fset=__SetRayFileFluxUnit)
```

`static`

Gets or sets the flux unit of the ray file source.

**Prerequisite**: The Pattern file must be a ray file.\
&#x20;The values are:\
&#x20;0 - lumen (lm).\
&#x20;1 - watt (W).\


**Value type**: Integer. \


The default value is 0.

### RayFileSpectrumType

```python theme={null}
str RayFileSpectrumType = property(fget=__GetRayFileSpectrumType, fset=__SetRayFileSpectrumType)
```

`static`

Gets or sets the spectrum type.

The values are:\
&#x20;0 - Monochromatic, with this value the wavelength property is available.\
&#x20;1 - Blackbody, with this value the temperature property is available.\
&#x20;2 - Library, with this value the spectrum file property is available.\


**Value type**: Integer.\


The default value is 0.

### RayFileTemperature

```python theme={null}
str RayFileTemperature = property(fget=__GetRayFileTemperature, fset=__SetRayFileTemperature)
```

`static`

Gets or sets the temperature.

**Prerequisite**: The SpectrumType must be 0.\


**Value type**: double (in Kelvin).\
&#x20;**Range**: The value must be superior to 0.0.\


The default value is 2856.0 K.

### RayFileWavelength

```python theme={null}
str RayFileWavelength = property(fget=__GetRayFileWavelength, fset=__SetRayFileWavelength)
```

`static`

Gets or sets the wavelength.

**Value type**: Double (in nanometer).\
&#x20;**Range**: The value must be superior to 0.0.\


The default value is 555.0 nm.

### RayLength

```python theme={null}
str RayLength = property(fget=__GetRayLength, fset=__SetRayLength)
```

`static`

Gets or sets the ray length.

**Value type**: Double (in millimeter).\
&#x20;**Range**: The value must be superior to 0.0.\


The default value is 75.0 mm.

### SpectrumFilePath

```python theme={null}
str SpectrumFilePath = property(fget=__GetSpectrumFilePath, fset=__SetSpectrumFilePath)
```

`static`

Gets or sets the spectrum file path.

**Prerequisite**: The SpectrumType must be 1.\


**Value type**: String.\


The default value is an empty string.

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

* **SpeosNX\_2412.py**
