Hi,
I have created several ACT functionalities in SpaceClaim ANSYS 2020R2 which I'm transfering to 2023R1. I have tried to use the following code snippet in both versions:
_import clr
clr.AddReference("SpaceClaim.Api.V20.Scripting.dll")
import SpaceClaim.Api.V20.Scripting as SCv20_Scripting
rootPart = SCv20_Scripting.Helpers.DocumentHelper.GetRootPart()
selPart = SCv20_Scripting.Selection.PartSelection.Create(rootPart)
SCv20_Scripting.Helpers.ComponentHelper.FlattenAssembly(selPart, None)_
It works fine in ACT console in 2020R2, but i get following error for version 2023R1
Error: Could not load type 'SpaceClaim.Commands.FlattenAssemblyCommandInitializer' from assembly 'Structure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7210645d4d5e3a39'.
Any idea, how to resolve this issue.
Many thanks