Skip to content

Issue with Geometry File Export in Discovery via PyAnsys #2210

@manoj-lad

Description

@manoj-lad

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Hello,

I want to use PyAnsys to setup a automated workflow to clean-up the geometry.

And while using API export_to_disco, I am getting error as below.

image

Note, it works fine with Spaceclaim. (for spaceclaim, I am using export_to_scdocx)

Can you please let me know what I am missing.

I am attaching a zip folder which contains

  1. A geometry step file
  2. A sample python file to show what and how I am using the APIs
  3. A batch file to start the process.

discovery_file_export_issue.zip

Thanks in advance!

Manoj.

📝 Steps to reproduce

  1. Please unzip the file given.
  2. Open run.bat file put in the folder and change the python interpreter as per your local machine.
  3. Open command prompt a the location of unzipped folder.
  4. And launch the run.bat file.

Note, I have used Discovery2025R2 in the script with port 5001 on localhost.

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

Ansys-Discovery2025R2

🐍 Which Python version are you using?

3.13

📦 Installed packages

aiofiles==24.1.0
aiohappyeyeballs==2.6.1
aiohttp==3.12.14
aiosignal==1.4.0
annotated-types==0.7.0
ansys-api-dbu==0.3.24
ansys-api-fluent==0.3.35
ansys-api-geometry==0.4.74
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.1
ansys-fluent-core==0.32.1
ansys-geometry-core==0.11.2
ansys-platform-instancemanagement==1.1.2
ansys-tools-filetransfer==0.1.1
ansys-tools-path==0.7.3
ansys-units==0.6.0
anyio==4.9.0
attrs==25.3.0
backoff==2.2.1
beartype==0.21.0
beautifulsoup4==4.13.4
certifi==2025.4.26
cffi==1.17.1
chardet==5.2.0
charset-normalizer==3.4.2
click==8.2.1
colorama==0.4.6
contourpy==1.3.2
cryptography==45.0.4
cycler==0.12.1
dataclasses-json==0.6.7
defusedxml==0.7.1
Deprecated==1.2.18
distro==1.9.0
dnspython==2.7.0
docker==7.1.0
email_validator==2.2.0
emoji==2.14.1
faiss-cpu==1.11.0.post1
fastapi==0.116.1
fastapi-cli==0.0.8
fastapi-cloud-cli==0.1.4
filetype==1.2.0
flexcache==0.3
flexparser==0.4
fonttools==4.58.1
frozenlist==1.7.0
geomdl==5.4.0
googleapis-common-protos==1.70.0
greenlet==3.2.3
groq==0.31.0
grpcio==1.72.1
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
h11==0.16.0
html5lib==1.1
httpcore==1.0.9
httptools==0.6.4
httpx==0.28.1
httpx-sse==0.4.1
idna==3.10
importlib_metadata==8.7.0
Jinja2==3.1.6
jiter==0.10.0
joblib==1.5.1
jq==1.10.0
jsonpatch==1.33
jsonpointer==3.0.0
kiwisolver==1.4.8
langchain==0.3.26
langchain-community==0.3.27
langchain-core==0.3.75
langchain-groq==0.3.7
langchain-text-splitters==0.3.8
langdetect==1.0.9
langsmith==0.4.6
lxml==5.4.0
Markdown==3.8.2
markdown-it-py==3.0.0
MarkupSafe==3.0.2
marshmallow==3.26.1
matplotlib==3.10.3
mdurl==0.1.2
multidict==6.6.3
mypy_extensions==1.1.0
nest-asyncio==1.6.0
nltk==3.9.1
numpy==2.2.6
olefile==0.47
openai==1.97.0
orjson==3.11.0
packaging==25.0
pandas==2.2.3
pdfminer.six==20250506
pdfplumber==0.11.7
pillow==11.2.1
Pint==0.25
platformdirs==4.3.8
propcache==0.3.2
protobuf==5.29.5
psutil==7.0.0
pyansys-tools-report==0.8.2
pycparser==2.22
pydantic==2.11.7
pydantic-settings==2.10.1
pydantic_core==2.33.2
Pygments==2.19.2
pyparsing==3.2.3
pypdf==5.8.0
pypdfium2==4.30.1
python-dateutil==2.9.0.post0
python-dotenv==1.1.1
python-iso639==2025.2.18
python-magic==0.4.27
python-multipart==0.0.20
python-oxmsg==0.0.2
python-pptx==1.0.2
pytz==2025.2
pywin32==310
PyYAML==6.0.2
RapidFuzz==3.13.0
regex==2024.11.6
requests==2.32.3
requests-toolbelt==1.0.0
rich==14.1.0
rich-toolkit==0.14.8
rignore==0.6.4
scipy==1.16.1
scooby==0.10.1
semver==3.0.4
sentry-sdk==2.33.2
setuptools==80.9.0
shellingham==1.5.4
six==1.17.0
sniffio==1.3.1
soupsieve==2.7
SQLAlchemy==2.0.41
starlette==0.47.2
tenacity==9.1.2
tiktoken==0.9.0
tqdm==4.67.1
typer==0.16.0
typing-inspect==0.9.0
typing-inspection==0.4.1
typing_extensions==4.14.0
tzdata==2025.2
unstructured==0.18.9
unstructured-client==0.39.1
urllib3==2.4.0
uvicorn==0.35.0
watchfiles==1.1.0
webencodings==0.5.1
websockets==15.0.1
wrapt==1.17.2
XlsxWriter==3.2.3
yarl==1.20.1
zipp==3.22.0
zstandard==0.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions