Hello,
I noticed that drawfont() command works until the model is saved and closed. When trying to open a model with that command, FlexSim crashes at the opening.
I was able to find an issue related to this but without the crash in 23.0.11 and 23.2.1.
For me the text is not show when reloading the model IF the font number is the value used in the save. If the number is changed to a different font it draws the text again. This does not 'stack' in that its seems to be just the font value when saved that will not display when model is reopened.
Thanks for drawing attention to this - I will send it in to the developers.
As for the crashing - have you tried using a later version?
While the crash happens on the 23.2.1. Maybe there's also something related to my pc configuration or to the fact that I put it in an OnDraw trigger of a plane.
Anyhow, thanks for putting it on the dev list.
I just used a visual shape - should be the same effect as a plane.
The text not drawing is a timing issue with the initialization of the font rendering library. This is caused by calling drawfont() before anything else in the program has tried to render text.
I was unable to replicate the crashing issue.
I've pushed a fix for the timing issue in the next bugfix releases.
You can workaround the issue by calling drawtext(view, "", 0,0,0); before calling drawfont().
@Marco Baccalaro This issue is now fixed in 23.0.12 and 23.2.2
11 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