Is there a program that converts Tcl into PY files?

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
YizheHe
Posts: 3
Joined: Thu Jun 11, 2020 10:43 pm

Is there a program that converts Tcl into PY files?

Post by YizheHe » Thu Jun 11, 2020 10:49 pm

Is there a program like ETO that can convert Tcl on openSees to corresponding Py file?I didn't have to go back to modeling in Python, which would have been cumbersome.Thank you

YizheHe
Posts: 3
Joined: Thu Jun 11, 2020 10:43 pm

Re: Is there a program that converts Tcl into PY files?

Post by YizheHe » Thu Jun 11, 2020 11:09 pm

Maybe someone wants to write this software?This makes openSeesPy a lot easier. There are many applications like SAP2000 and ETAPS that convert models to OpenSees models.We can save a lot of modeling time.

mhscott
Posts: 475
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Is there a program that converts Tcl into PY files?

Post by mhscott » Tue Jun 23, 2020 7:30 am

This script works, but only if the Tcl file defines everything line by line, i.e., without loops, conditional statements, or variable substitutions.

https://github.com/OpenSees/OpenSees/bl ... nSeesPy.py
Was my answer helpful to you? https://www.buymeacoffee.com/mhscott
Do you need extra help with OpenSees? https://courses.silviasbrainery.com/

Michael H. Scott, Ph.D.
OpenSees blog: www.portwooddigital.com

YizheHe
Posts: 3
Joined: Thu Jun 11, 2020 10:43 pm

Re: Is there a program that converts Tcl into PY files?

Post by YizheHe » Mon Jun 29, 2020 3:50 am

Thank you .Im so happy for it and I admire your work

ajmakdisi
Posts: 5
Joined: Wed Mar 19, 2014 10:02 am
Location: University of Washington

Re: Is there a program that converts Tcl into PY files?

Post by ajmakdisi » Thu Sep 03, 2020 7:07 pm

I was actually wondering the exact opposite... is there any way to recover an equivalent .tcl file from an openseespy file?

mhscott
Posts: 475
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Is there a program that converts Tcl into PY files?

Post by mhscott » Fri Sep 04, 2020 7:10 am

Why in the world would you want to do that? hahaha

It should be straightforward to reverse the Python script to go OpenSeesPy to OpenSeesTcl.
Was my answer helpful to you? https://www.buymeacoffee.com/mhscott
Do you need extra help with OpenSees? https://courses.silviasbrainery.com/

Michael H. Scott, Ph.D.
OpenSees blog: www.portwooddigital.com

Sabdhsingh
Posts: 2
Joined: Fri Sep 18, 2020 9:29 pm

Re: Is there a program that converts Tcl into PY files?

Post by Sabdhsingh » Fri Sep 18, 2020 9:52 pm

0, a new system-wide command-line utility is provided called qutest_convert. This script can do most of the conversion of a test script from Tcl to Python for you (e.g. it doesn't convert Tcl binary format to [
Last edited by Sabdhsingh on Sat Nov 07, 2020 5:33 am, edited 1 time in total.

Sabdhsingh
Posts: 2
Joined: Fri Sep 18, 2020 9:29 pm

Re: Is there a program that converts Tcl into PY files?

Post by Sabdhsingh » Sat Nov 07, 2020 12:35 am

If you'll keep the TCL in TCL and integrate with python you will get an equivalent quite result but it'll actually be https://www.sevenmentor.com/machine-lea ... n-pune.php

Post Reply