The ICurvePoint command is displayed undefined in ACT start page
Using ICurvePoint to obtain a geometric point, encapsulation on the ACT Start page shows that ICurvePoint is not defined.How to solve this, or there may be other ways to obtain a geometric point.
Best Answer
-
You need to first import the SpaceClaim API packages in to ACT:
import os, sys clr.AddReference("Ans.Utilities") from Ansys.Utilities import ApplicationConfiguration version = ApplicationConfiguration.DefaultConfiguration.VersionInfo.VersionString sys.path.append(os.environ["AWP_ROOT"+version]+"/scdm/Scripting") clr.AddReference("SpaceClaim.Api.V{}".format(version)) clr.AddReference("SpaceClaim.Api.V{}.Scripting".format(version)) exec('from LoadSCDMAPITypesV{} import *'.format(version)) exec('from UtilitiesOnLoadV{} import *'.format(version))
1
Answers
-
I know this is a bit old, but @AKD-Scripting-Team - can one of you provide some guidance here?
0 -
Hello @zggnph ,
Can you please share the line of main.py that generated this?
ICurvePoint seems to be used in a Selection or something, so perhaps that method is using a loaded Method when launched in batch.
Regards
Adriano
!> @zggnph said:
Using ICurvePoint to obtain a geometric point, encapsulation on the ACT Start page shows that ICurvePoint is not defined.How to solve this, or there may be other ways to obtain a geometric point.0