Dec-20-2019, 02:52 PM
My homework needs to use Python to write a programme for syntax files conversion.
For many construction software, the interoperability is weak and they cannot be shared to use.
However, they would contain a syntax file when they are saved.
That syntax file uses semantic semantic expression to present the building model in that software.
This file can be inported back to the corresponding software to use.
However, different construction software possesses their own syntax files with different syntax format and arrangement.
Therefore, this homework need me to write a programme for syntax files conversion.
But, I do not know how to start. I know the 'open' command let me to open the files in Python but I do not know how to do in the next step
For example,
This is one of the things in Etabs, a construction software
FRAMESECTION "B200x300" MATERIAL "C45" SHAPE "Concrete Rectangular" D 300 B 200
This is another syntax in SAP2000, also a construction software
SectionName=B200x300 Material=C45 Shape=Rectangular t3=300 t2=200 Area=60000
So, how can I write the programme so that the a new syntax files would be created and change the things in Etabs to SAP2000
For many construction software, the interoperability is weak and they cannot be shared to use.
However, they would contain a syntax file when they are saved.
That syntax file uses semantic semantic expression to present the building model in that software.
This file can be inported back to the corresponding software to use.
However, different construction software possesses their own syntax files with different syntax format and arrangement.
Therefore, this homework need me to write a programme for syntax files conversion.
But, I do not know how to start. I know the 'open' command let me to open the files in Python but I do not know how to do in the next step
For example,
This is one of the things in Etabs, a construction software
FRAMESECTION "B200x300" MATERIAL "C45" SHAPE "Concrete Rectangular" D 300 B 200
This is another syntax in SAP2000, also a construction software
SectionName=B200x300 Material=C45 Shape=Rectangular t3=300 t2=200 Area=60000
So, how can I write the programme so that the a new syntax files would be created and change the things in Etabs to SAP2000