Skip to content

Bug located in ... design.export_to_pmdb (inside Linux) #2244

@harikrushna171

Description

@harikrushna171

🔍 Before submitting the issue

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

🐞 Description of the bug

Below code is running fine in windows system. However this code is not running inside Linux environment.

I want to use this geometry further in Mechanical. As Discovery or spaceclaim geometry is not supported inside Linux so I used geometry service and use .pmdb format but I cannot export .pmdb file.

📝 Steps to reproduce

Start a modeler session

modeler = launch_modeler()
print(modeler)

design_name = "ExtrudeProfile"
design = modeler.create_design(design_name)

sketch = Sketch()
sketch.circle(Point2D([10, 10], UNITS.mm), Quantity(10, UNITS.mm))
cylinder = design.extrude_sketch("SingleBody", sketch, Quantity(10, UNITS.mm))

pmdb_path = design.export_to_pmdb(location=geometry_path)
modeler.close()

error "
raise GeometryExitedError(
ansys.geometry.core.errors.GeometryExitedError: Geometry service connection terminated: The AnsysSCPlugin.PluginAddin needs to be loaded in order to export to PMDB format.
Stack trace:
at Infrastructure.v0.Infrastructure.ApiGeometryCoreService.Designs.PMDBExport(String filepath)
at Infrastructure.v0.Infrastructure.ApiGeometryCoreService.Designs.<>c__DisplayClass26_0.b__0()
at SpaceClaim.Api.V252.WriteBlock.ExecuteTask(String text, Task task)
at Infrastructure.v0.Infrastructure.ApiGeometryCoreService.Utilities.ApiUtilities.ExecuteTask(String commandName, Task task, Metadata metadata)"

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

25R2, With ANSYS Python Manager installation

🐍 Which Python version are you using?

3.9

📦 Installed packages

aa

Metadata

Metadata

Assignees

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