Hi,
I would like to ask if it possible to link edit view with model parameter and show it's value?
Thank you.
Martin
Hi,
I would like to ask if it possible to link edit view with model parameter and show it's value?
Thank you.
Martin
Hi @Martin K5, was one of Jason Lightfoot's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
Use hotlinkx code and test for eventdata being 0 (reading) - otherwise it's applying. The coldlinkx description is valid for hotlinkx
Thank you.
You can make a Parameter Table dashboard. By exploring the tree of an open dashboard, you can learn that the edit on the dashboard uses a hotlinkx, as @Jason Lightfoot suggested. The actual code is as follows:
if (isclasstype(focus, "ConstrainedVariable")) { if (!eventdata) { int precision = get(node("MAIN:/1/8/1/6")); string str = function_s(focus, "getEditString", precision); setviewtext(c, str); } else { string str = getviewtext(c); function_s(focus, "setFromString", str, 1); } return 0; }
Here's a model with a GUI linked to the Source object which contains a field for a Model Parameter and one for a label on the Source.
v2022_Parameter_HotlinkTest.fsm
There may be better listeners than onSelObjChange and onDocChange.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved