# Do not put some encoding here
DEBUG = True
import os
execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile", "startup.py"))
from pymodelio.core.env import PyModelioEnv
PyModelioEnv.execute(
    'oclscribe.macro_generate_ocl',[],DEBUG)




Example #2
1
# Do not put some encoding here
DEBUG = True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
from pymodelio.core.env import PyModelioEnv
modules = []
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_poi.macro_poi_test',[],DEBUG)
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_googlesheet.macro_googlesheet',[],DEBUG)
modules = ('sheetscribe.ooss', 'sheetscribe.snapshot', 'sheetscribe.tables',
    'sheetscribe.uml')
PyModelioEnv.execute(
    'sheetscribe.uml2ooss.macro_uml2ooss',modules,DEBUG)
# Do not put some encoding here
DEBUG = True
import os

execfile(os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile", "startup.py"))
from pymodelio.core.env import PyModelioEnv

PyModelioEnv.execute("oclscribe.macro_add_operation_definition", ["oclscribe.profile"], DEBUG)
Example #4
0
# Do not put some encoding here
DEBUG = True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
from pymodelio.core.env import PyModelioEnv
#modules = []
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_poi.macro_poi_test',[],DEBUG)
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_googlesheet.macro_googlesheet',[],DEBUG)
modules = (
    'pymodeliolocal.graph',
    'pymodeliolocal.graph.browser',
    'pymodeliolocal.graph.html',
    'pymodeliolocal.graph.svg',
    'graphscribe',
)
PyModelioEnv.execute(
    'graphscribe.macro_main', modules, DEBUG)
        sys.path.insert(0,framework_commons)
    print "Starting pymodelio.core.env.PyModelioEnv from path %s" \
          % framework_commons
    from pymodelio.core.env import PyModelioEnv

    #--------------------------------------------------------------------------
    # Define global functions that will enable accessing modelio global
    # variable from modules at any time.
    #--------------------------------------------------------------------------

    if WITH_MODELIO:
        from pyalaocl import asSeq
        def getSelectedElements():
            global selectedElements
            return asSeq(selectedElements)
        PyModelioEnv.addGlobalFunction(getSelectedElements)

        def getModelingSession():
            global modelingSession
            return modelingSession
        PyModelioEnv.addGlobalFunction(getModelingSession)

        def getSelection():
            global selection
            return asSeq(selection)
        PyModelioEnv.addGlobalFunction(getModelingSession)


    #--------------------------------------------------------------------------
    # Import modules to inject code and for convenience in the python console
    #--------------------------------------------------------------------------
Example #6
0
# Do not put some encoding here
DEBUG=True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
modules=[
   'checkscribe'
]
from pymodelio.core.env import PyModelioEnv
PyModelioEnv.execute('checkscribe.macro_check',modules,DEBUG)
# Do not put some encoding here
DEBUG=True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
modules=[
   'metascribe.explorer',
   'metascribe.onlinepyscript',
   'metascribe.virtual',
   'metascribe.webdoc',
   'metascribe.webpublisher',
   'metascribe.images',
   'metascribe.introspection',
   'metascribe.explorer']
from pymodelio.core.env import PyModelioEnv
PyModelioEnv.execute('metascribe.macro_coexplorer',modules,DEBUG)
from metascribe.explorer import explore,exp,show