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

# ConvertToScriptVersion method

## Description

This function allows you to convert retrieved geometry objects, from a Speos object selection attribute (i.e. Items, LinkedObjects), from the latest Speos API version to the anterior script version that you want to edit.

## Python Definition

```python theme={null}
import SpaceClaim.Api.V20 as scriptNameSpace

def ConvertToScriptVersion(obj):
    doc = Window.ActiveWindow.Document
    res = scriptNameSpace.Moniker[scriptNameSpace.IDocObject].FromString(obj.Moniker.ToString()).Resolve(doc)
    return res
```

## Example

```python theme={null}
docObjInScriptVersion = ConvertToScriptVersion( docObjInSpeosVersion )
print docObjInScriptVersion # => V20 => OK
```
