+ support .inp file format
This commit is contained in:
parent
5b27b3194e
commit
bc9b8bcf19
|
@ -76,7 +76,7 @@ static PyObject * getActiveAnalysis(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
/* module functions */
|
||||
static PyObject * openEditor(PyObject *self, PyObject *args)
|
||||
static PyObject * open(PyObject *self, PyObject *args)
|
||||
{
|
||||
char* Name;
|
||||
const char* DocName;
|
||||
|
@ -124,7 +124,9 @@ struct PyMethodDef FemGui_Import_methods[] = {
|
|||
"setActiveAnalysis(AnalysisObject) -- Set the Analysis object in work."},
|
||||
{"getActiveAnalysis" ,getActiveAnalysis ,METH_VARARGS,
|
||||
"getActiveAnalysis() -- Returns the Analysis object in work."},
|
||||
{"openEditor" ,openEditor ,METH_VARARGS,
|
||||
"openEditor() -- Opens a simple text editor for an FEM file."},
|
||||
{"open" ,open ,METH_VARARGS,
|
||||
"open(string) -- Opens an Abaqus file in a text editor."},
|
||||
{"insert" ,open ,METH_VARARGS,
|
||||
"insert(string,string) -- Opens an Abaqus file in a text editor."},
|
||||
{NULL, NULL} /* end of table marker */
|
||||
};
|
||||
|
|
|
@ -30,3 +30,4 @@ FreeCAD.addExportType("TetGen file (*.poly)","convert2TetGen")
|
|||
FreeCAD.addImportType("FEM formats (*.unv *.med *.dat *.bdf)","Fem")
|
||||
FreeCAD.addExportType("FEM formats (*.unv *.med *.dat *.inp)","Fem")
|
||||
FreeCAD.addImportType("CalculiX result (*.frd)","CalculixLib")
|
||||
FreeCAD.addImportType("Abaqus file (*.inp)","FemGui")
|
||||
|
|
|
@ -560,7 +560,7 @@ class _JobControlTaskPanel:
|
|||
# The Abaqus syntax highlighter works similarly to that one of SciTE so that our
|
||||
# own editor can be used now
|
||||
import FemGui
|
||||
FemGui.openEditor(filename)
|
||||
FemGui.open(filename)
|
||||
|
||||
def runCalculix(self):
|
||||
print 'runCalculix'
|
||||
|
|
Loading…
Reference in New Issue
Block a user