Skip to main content
Ctrl+K
PyScadeOne - Home
  • Getting started
  • User guide
  • API reference
  • Examples
  • Contributing
Ctrl+K
  • GitHub
Ctrl+K
  • Getting started
  • User guide
  • API reference
  • Examples
  • Contributing
  • GitHub

Section Navigation

  • ScadeOne app
  • Project management
  • Model
  • Swan language
  • Services
    • Model navigation
      • Navigation using names
      • Diagram navigation
      • Swan model visitor
    • Generated code
    • Simulation data
    • SCADE Suite test procedure importer
    • Test results
    • FMU export
  • Common classes
  • PyAnsys
  • API reference
  • Services
  • Model navigation
  • Navigation using names

Navigation using names#

Access to a model element by its name is done with namespace-based navigation.

Name objects are:

  • Global: sensor, constant, type, group, or operator declaration

  • Local: input/output of an operator, a flow defined with var.

Objects can be found in another module, or can be hidden (an input by a local flow for instance).

The get_declaration() function returns:

  • The global object (if any) with a given name (either an id, or module::id form), from the ModuleBody and ModuleInterface.

  • The object (if any) with a given name (either an id, or module::id form) in the current scope, or in the enclosing scope, possibly reaching the module level, from the Scope.

See also Navigation using names for a detailed example.

Show Source

© Copyright (c) 2025 ANSYS, Inc. All rights reserved.

Created using Sphinx 8.1.3.

Built with the Ansys Sphinx Theme 1.2.4.
Last updated on