diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c
index 4c4f97999..526275246 100644
--- a/src/frontend/inpcom.c
+++ b/src/frontend/inpcom.c
@@ -1095,6 +1095,10 @@ struct card *inp_readall(FILE *fp, const char *dir_name, const char* file_name,
/* some syntax checks, excluding title line */
inp_check_syntax(working);
+ /* collect .agemodel data */
+ if (newcompat.de)
+ readdegparams(working);
+
if (newcompat.lt && newcompat.a)
ltspice_compat_a(working);
if (newcompat.ps && newcompat.a)
diff --git a/src/frontend/inpcom.h b/src/frontend/inpcom.h
index 69326fe58..18fd33a48 100644
--- a/src/frontend/inpcom.h
+++ b/src/frontend/inpcom.h
@@ -13,4 +13,6 @@ char *inp_pathresolve(const char *name);
extern char* inp_remove_ws(char* s);
extern char* search_plain_identifier(char* str, const char* identifier);
+extern int readdegparams(struct card* deck);
+
#endif
diff --git a/visualc/sharedspice.vcxproj b/visualc/sharedspice.vcxproj
index c62fafd5e..6b8030679 100644
--- a/visualc/sharedspice.vcxproj
+++ b/visualc/sharedspice.vcxproj
@@ -1302,6 +1302,7 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
+
diff --git a/visualc/vngspice.vcxproj b/visualc/vngspice.vcxproj
index 8e80be4e2..a6a63f0ff 100644
--- a/visualc/vngspice.vcxproj
+++ b/visualc/vngspice.vcxproj
@@ -1533,6 +1533,7 @@
+