2
$\begingroup$

I wonder wether there is a way to identify an AceFEM session. Some variable with a Hash or the startup time of the current session, which is reset after an SMTInputData[] command. Thanks in advance !

$\endgroup$
1
$\begingroup$

Value of SMTSession[[51, 1]] is set to AbsoluteTime[] every time when SMTInputData[] is called. This can be probably used as unique identifier of AceFEM session.

<< AceFEM`;
SMTInputData[];
id = SMTSession[[51, 1]]
(* 3.7204563945580672*10^9 *)

DateString@FromAbsoluteTime@id
(* "Thu 23 Nov 2017 20:06:34" *)

Be aware that this solution is undocumented.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thanks a lot for the quick response Pinti (y) $\endgroup$ – Sascha Maassen Nov 23 '17 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.