Пример #1
0
    restoreViewer(viewerInfo)


try:
    restoreCoreModels()
except:
    reportRestoreError("Error restoring core models")

    replyobj.status("Restoring extension info...",
                    blankAfter=0,
                    secondary=True)

try:
    import StructMeasure
    from StructMeasure.DistMonitor import restoreDistances
    registerAfterModelsCB(restoreDistances, 1)
except:
    reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
    formattedPositions = {
        'session-start':
        (0.51656690745981, 212.3515733945, (0.42143249511719, -0.0260009765625,
                                            -104.88691711426),
         (430.69914501186, -402.44959815756), -104.88691711426, {
             (3, 0):
             ((85.74991093647263, -19.130254540518578, 15.953759428724865),
              (-0.5611631172296855, 0.5113469753074245, 0.650861142414425,
               111.83901581399124)),
             (2, 0):
Пример #2
0
    restoreViewer(viewerInfo)


try:
    restoreCoreModels()
except:
    reportRestoreError("Error restoring core models")

    replyobj.status("Restoring extension info...",
                    blankAfter=0,
                    secondary=True)

try:
    import StructMeasure
    from StructMeasure.DistMonitor import restoreDistances
    registerAfterModelsCB(restoreDistances, 1)
except:
    reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
    formattedPositions = {}
    import Midas
    Midas.restoreMidasBase(formattedPositions)


try:
    restoreMidasBase()
except:
    reportRestoreError('Error restoring Midas base state')
Пример #3
0
		secondary=True)
	restoreViewer(viewerInfo)

try:
	restoreCoreModels()
except:
	reportRestoreError("Error restoring core models")

	replyobj.status("Restoring extension info...", blankAfter=0,
		secondary=True)


try:
	import StructMeasure
	from StructMeasure.DistMonitor import restoreDistances
	registerAfterModelsCB(restoreDistances, 1)
except:
	reportRestoreError("Error restoring distances in session")


def restoreMidasBase():
	formattedPositions = {}
	import Midas
	Midas.restoreMidasBase(formattedPositions)
try:
	restoreMidasBase()
except:
	reportRestoreError('Error restoring Midas base state')


def restoreMidasText():