Skip to content

ccx support in a standalone python script #45

Description

@sunnsi
#!python
import sys
sys.path.append('E:/Coreform Cubit 2025.1/bin')
sys.path.append('E:/Coreform Cubit 2025.1/build_windows_2025.5')
import cubit
cubit.init(['--no-gui', '--no-graphics'])
cubit.cmd('set undo on')
cubit.cmd('undo on')
cubit.cmd('import step "D:/Nextcloud/Teaching/FEM/Calculix/PrePoMax examples geometries/Example 3 - elliptical bar.stp" heal')
cubit.cmd('set duplicate block elements off')
cubit.cmd('undo group begin')
cubit.cmd('block 1 add volume 1 ')
cubit.cmd('undo group end')
cubit.cmd('ccx block 1 element_type C3D20R')
...

Error:

ERROR: Unrecognized Keyword: 'ccx'
ERROR: syntax error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions