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

# Class MacroHelper

Namespace: [VM.Managed.Operation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Operation)\
Assembly: VMAppCore.dll

This class is to represent the macro helper.

```csharp theme={null}
public class MacroHelper
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[MacroHelper](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Operation.MacroHelper.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### MacroHelper()

```csharp theme={null}
public MacroHelper()
```

## Fields

### g\_dicKeyToFullNameForDeleting

```csharp theme={null}
public static Dictionary<string, string> g_dicKeyToFullNameForDeleting
```

#### Field Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [string](https://learn.microsoft.com/dotnet/api/system.string)>

## Methods

### ChangeFullNameToKey(string, Document)

```csharp theme={null}
public static string ChangeFullNameToKey(string strXml, Document doc)
```

#### Parameters

`strXml` [string](https://learn.microsoft.com/dotnet/api/system.string)

`doc` [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Document.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ChangeFullNameToKey(string)

```csharp theme={null}
public static string ChangeFullNameToKey(string strXml)
```

#### Parameters

`strXml` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ChangeKeyToFullName(string, Document)

```csharp theme={null}
public static string ChangeKeyToFullName(string strXml, Document doc)
```

#### Parameters

`strXml` [string](https://learn.microsoft.com/dotnet/api/system.string)

`doc` [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Document.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ChangeKeyToFullName(string)

```csharp theme={null}
public static string ChangeKeyToFullName(string strXml)
```

#### Parameters

`strXml` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ChangeKeyToFullNameCore(XmlNode, bool, IDocument)

```csharp theme={null}
public static void ChangeKeyToFullNameCore(XmlNode nodeXml, bool bReverse, IDocument doc)
```

#### Parameters

`nodeXml` [XmlNode](https://learn.microsoft.com/dotnet/api/system.xml.xmlnode)

`bReverse` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`doc` IDocument

### CreateEntityDictionary(ObjectBase)

```csharp theme={null}
public static Dictionary<string, string> CreateEntityDictionary(ObjectBase entity)
```

#### Parameters

`entity` [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md)

#### Returns

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [string](https://learn.microsoft.com/dotnet/api/system.string)>

### GetFullNameFromKey(ObjectBase)

```csharp theme={null}
public static string GetFullNameFromKey(ObjectBase obj)
```

#### Parameters

`obj` [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### ModifyEntityDictionary(ObjectBase)

```csharp theme={null}
public static Dictionary<string, string> ModifyEntityDictionary(ObjectBase entity)
```

#### Parameters

`entity` [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md)

#### Returns

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [string](https://learn.microsoft.com/dotnet/api/system.string)>
