Hi,
Is there a way to set very long process names for multiprocessors? Also, are there any alternatives to setting a long name?
Thanks in advance.
Hi,
Is there a way to set very long process names for multiprocessors? Also, are there any alternatives to setting a long name?
Thanks in advance.
I believe they mean the name of the process steps, not the object.
Those are used as state names in the multiprocessor state profile. The state is stored in a string bundle field which by default has a limit of 32 bytes.
You can clear and rebuild the profile bundle and choose a higher limit or the "VARCHAR" type which has no limit at all.
I didn't notice any issues that doing this might cause in a quick test (memory usage will be higher, but that shouldn't be an issue if this isn't done for thousands of objects).
You can run the code below for newly added multiprocessors and then proceed to use them as normal.
Object multiprocessor = <insert reference here>; treenode mpStateBundle = multiprocessor.find(">stats/state_profiles/1/1"); clearbundle(mpStateBundle); // Set the byte limit larger than the default 32 addbundlefield(mpStateBundle, "state", BUNDLE_FIELD_TYPE_STR | BUNDLE_FIELD_INDEX_MAP, 64); // Or use BUNDLE_FIELD_TYPE_VARCHAR with no fourth parameter for no limit at all addbundlefield(mpStateBundle, "time", BUNDLE_FIELD_TYPE_DOUBLE); addbundlefield(mpStateBundle, "active", BUNDLE_FIELD_TYPE_INT | BUNDLE_FIELD_INDEX_MAP); // Re-add default state entries addbundleentry(mpStateBundle, "other", 0, 0); addbundleentry(mpStateBundle, "Process1", 0, 0); addbundleentry(mpStateBundle, "none", 0, 0);
I don't really know what "alternatives" there might be, other than coming up with a shorter name, though.
15 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