Header / footer values displayed in SMath Viewer - ..and modified too... - Messages
The new header and footer functionality of Smath Studio is great for engineering documents which now have a more goodlooking way of been tagged, named and referenced to.
This tagging is not available (yet?) via SMath Viewer.
It would be good if some data placed in the header could be finalized/modified directly in Smath Viewer.
For instance, I could define some field like:
Prepared by:="xyz"
Date:="xx-xx-20xx"
In the header of the master .sm file from which the .exe file is generated and distributed.
This fields would be filled directily in Viewer every time the corresponding .exe file is run for a specific project by a specific engineer in that specific day..
Ciao!
Federico
WroteFor instance, I could define some field like:
Project Code:="abcd"Prepared by:="xyz"Date:="xx-xx-20xx"
+++ all the ones you haven't be thinking of yet.
In short: you want to compose the cartouche via the "Viewer"
[which "viewer" I have never seen because not existing in SS 6179].
... then once you have composed the "Viewer-cartouche" you want to plug that
in the page setup. All that you have it otherwise/simpler.
This typical demo: make it via "Writer Region" [matter of preference].
the new Header Region implemented in 6884 (

Info gets printed when printing directly from Viewer, so it is there in Viewer, but hidden.
Same file, in Studio: header content can of course be viewed and modified.
It would be a useful feature for me, to have some control on text definitions contained in the Header also from Viewer UI.
WroteIt would be a useful feature for me, to have some control on text definitions contained in the Header
... that you have SS6179, probably up to page width.
... probably more than ONE user, try it.
Sorry, but I don't even understand what a "viewer" is.
In Engineering, gadgets aren't needed. Easy to save the cartouche
for each client, then do all different projects he wants.
What can you add in footer ? ... "Zooloo University"
Is that ? Important for Designers to cogitate on that egg.
But since you don't have the Viewer (it is not available in SS6179 which you are using, and you write that you don't know what the Viewer is), I'm afraid we could go on for hours without understanding each others on a common ground (or maybe, is that due to my "Zooloo University" degree?).
Just to elaborate something about all that "Why(s)?"..
There are precise Quality reasons/requirements that suggest to distribute to colleagues safe and "closed" (meaning validated) calculation tools, and the .exe format offered by Viewer is an excellent tool that meets perfectly these requirements. There are other ways, for sure. Viewer is one, and works great.
Infact, it can generate an Engineering deliverable according to company design criteria, without distributing the source file of the SMath project.
Yeah, useless if you are working on your own, in your house garage or in a five people office: in that case you can keep an eye on every line of your .sm file code; but it can make the difference in a hundred people company, where you want the documents/calculation done alwyas according to "company standards", without people messing around the SMath Studio project code (meaning the .sm file).
Going further, documents need to be identified with additional data (again, that's basic Quality requirements, cannot be waived): since yesterday I used to add the required placeholders directly in the document body, so they get displayed as a simple input in SMath Viewer, works great in any case..).
But today, well, the new document Header seems even a better place, if only it could be modified in Viewer too.
For sure, the above statements could be agreed or not.
I'm a Designer, and if a look at all this Quality stuff from a Designer point of view, I would like not to bother that much with Quality Procedures, because as you say "in Engineering gadgets aren't needed".
But I'm not working on my own, I need to prepare Engineering tools for other people too, and that's exactly where Quality Procedures are heavily involved: annoying, for sure, but needed and, must admit, useful too.
So, let's try to start again from the assumption that using SMath Viewer could be useful for some users out there, and going back to the beginning...
In SMath Viewer user interface, newly available (SS6884) custom Header and Footer data cannot be modified, up to now.
Hopefully, they will be accessible in the future from Viewer itself.
Federico
- have custom field type;
- make possible to edit custom fields from the viewer;
Wrote[which "viewer" I have never seen because not existing in SS 6179].
This is not correct; SMath Viewer feature exists and is built-in in any version since SS 0.96.4868.
SMath Viewer files are the executables created using "*exe" format in the "Save as..." menu, and are thinked as a way to share a small executable with a comfortable user interface to the "Average Joe" outside here (no needs to download SMath Studio and learn how to use it, just common input items such as textboxes, dropdown menu, etc...; all the magic made in smath by you, hidden under the hood).
You can see more in the wiki: https://smath.info/wiki/Viewer.ashx

WroteThere are precise Quality reasons/requirements that suggest to distribute to colleagues safe and "closed" (meaning validated) calculation tools, and the .exe format offered by Viewer is an excellent tool that meets perfectly these requirements. There are other ways, for sure. Viewer is one, and works great.
Infact, it can generate an Engineering deliverable according to company design criteria, without distributing the source file of the SMath project.
That's what we did before Windows age and compatible applications.
The last big project I was involved, all the "Instrument" stuff were listed by category:
1. Temperature ... 2. Flow ... 3. Valves ... etc.
For each, the list followed an order from right to left =>
Item ID, Flow sheet #, Fluid, Operating condition, Installation DWG, Model,,,,
Smath viewer does nothing for me. Open the attached document, you should see the
Table with all results. As you read further, my understanding of the "Viewer"
is explained ... a plugin to be designed, i.e: a sub-sheet Smath as "Viewer"
an effective tool adapted to Company/Client Procedure.
At that point, the option for the "Time Stamp" [Universal local time] from
the running machine, would be desirable [Display ON-OFF].
Thanks Davide, Federico ... Jean
Viewer_jmG.sm (24 KiB) downloaded 52 time(s).
The link button in your .SM file, I would not know how to define the link to a subsheet. Am I missing some related plugin?
My need is slighlty different, since I need to distribute the tools themselves , not only the results, to allow people to generate new results (with different input data), so that anybody can run new calculations according to a defined (yet unknown for him...) procedure, which he can't accidentally ruin..
Now, I can't upload an .exe example via SMath forum, so I'm sharing a dropbox link to the .exe file, in case you're interested in seeing the kind of tools I'm referring to.
Still did not have time to finalize this file though; infact, hiding of undesired outputs has not been finalized,, every description is still in italian, logo is missing, and all that Quality stuff we discussed above is missing too... (this file was more of an excercise for me)
By the way: common but annoing task, to define liquid volume in horizontal pressure vessels as a function of geometry and liquid height.
A lot of charts are available out there for specific shapes of dished heads and specific diameters, but sometimes having the analytical tool can help.
To see a pdf of the underlying code, just print it to pdf.
Ciao
Federico
ps: I hope linking to an external file in dropbox is not violating any Forum rule, but in case... moderators, feel free to delete it and curse me in various ways
Chau (ciao in "uruguayan", we use that for good by, but not for hello)
Alvaro
P.D.: You can upload zip files in this forum.
WroteHi Federico. Very interesting! SMath in the real world. Can you share also the .sm file?
Chau (ciao in "uruguayan", we use that for good by, but not for hello)
Alvaro
P.D.: You can upload zip files in this forum.
No problem, will upload it tomorrow morning from the office: the .SM file is in a different server, can't login from home.
WroteBy the way: common but annoing task, to define liquid volume in horizontal pressure vessels as a function of geometry and liquid height.
A lot of charts are available out there for specific shapes of dished heads and specific diameters, but sometimes having the analytical tool can help.
...peanut task by the click of the finger.
For the end shape, you can refer to TEMA [Tubular Exchange Manufacturer Association].
Cylindrical thanks follows some standards up here, standards depending upon pressure.
From the standard, you have the geometry of the ends, from there spline/integrate.
Usually, they are elliptical shape, even easier.
The all matter is to measure the perpendicular distance [H] from the center chord to
the bottom, and the ID and apply the c(H) approximation 5 decimals ...
Formula used to tabulate area of circular segment in TEMA and Prerry-Chilton.
Not sure about Viewer and what it should do for any user ?
End shape(s) not given in the attached.
Jean
Inst_Segment Partial Random.sm (42 KiB) downloaded 59 time(s).
WroteCan you share also the .sm file?
Hi Alvaro, here attached the sm file
VOLUMI SERBATOI ORIZZONTALI-V180831.sm (119 KiB) downloaded 85 time(s).
Federico
ps: we are far enough from the original topic; in case this needs to be moved into some other forum, please let me know (even if this Work in Progress file only uses basic functions with no sofisticated implementation, so I don't think it is eligible for the "Samples" subforum)
Wrote
Hi Alvaro, here attached the sm file
VOLUMI SERBATOI ORIZZONTALI-V180831.sm (119 KiB) downloaded 85 time(s).
Hi Federico. Thanks very much. This file help me to understand better the direction that SMath take in the relationship with qa procedures in real example. SMath documents can be printed from the exe file but isn't clear to me before your post how it relates with the internal formats and enterprise documents.
Best regards
Alvaro
Wrote
Hi Federico. Thanks very much. This file help me to understand better the direction that SMath take in the relationship with qa procedures in real example. SMath documents can be printed from the exe file but isn't clear to me before your post how it relates with the internal formats and enterprise documents.
Best regards
Alvaro
Unforntunately the example I posted is not finalized in terms of document tagging, as I wrote above.
On Monday if you want I can find something which is "in production".
In any case, very simply, apart from the numbering convention itself of the final document, which varies from company to company and has weak qc requirements (while businness requirements may be very rigid..), the minimum qc requirements would be:
- Author (and for some class of documents, reviewer and approver).
- Document revision
- Document date
- Calculation template (.exe file in our case...) version and name
- Author of the calculation template
- Last but not least, very important (even if not tracked in the templates) for ISO certification, and one of the most disregarded requirement:.... software test cases to prove the correct and robust implementation.
This is the area where I need to focus the more in future
Wrote
Last but not least, very important (even if not tracked in the templates) for ISO certification, and one of the most disregarded requirement:.... software test cases to prove the correct and robust implementation.
This is the area where I need to focus the more in future[/list]
Hi Federico. Thanks for your comments, I really appreciate them. About qa, upgrading and checking. I prefer the use of "external libraries", even I talk about small files with some few custom functions, like rk or nr solvers, instead of having them into collapsed areas. Also, I prefer native functions over plugins. Say that, I actually don't investigate how can use the include plugin with smath viewer. But guess that it could be more efficient way for quality control procedures, regarding certifications. And, finally, smath have some powerful way for check changes in files (and I'm not an expert doing that, but guess that others can help you implementing it, and with windows scripts seems to be a very natural way), which could be use for upgrading the smath version and check the files if have the same answer values, but guess that it can be extended to the case of the software test that you mention.
Best regards.
Alvaro.
WroteAuthor (and for some class of documents, reviewer and approver). Document revision Document date
All that is a document by itself ... more/more wrt ISO.
The all thing is simply Project Tracability from a => z
-
New Posts
-
No New Posts