Hi! I want to set the rail length and also the beam height of an ASRSvehicle using Flexscipt. Is there a way to do that? Thanks.
Hi! I want to set the rail length and also the beam height of an ASRSvehicle using Flexscipt. Is there a way to do that? Thanks.
Hi @Julius J2, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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.
The rails and beam are components of the ASRSvehicle and can be accessed as objects through "object.attrs.drawsurrogate.subnodes[]". The names/ranks needed to access the correct component can be seen in the animation editor.
Once you have a reference to the object you can set the size (and other properties) like you would with any other object (object.size.x/y/z).
As an example, the code in the script window in the attached model, randomizes both the rail lengths and the beam height. Note, that the ladder is part of the "Car" component, which you might want to adjust together with the beam size.
// Randomize the length of rails double rand = uniform(10, 40); Object lowerRail = ASRS.attrs.drawsurrogate.subnodes["BottomRail"]; Object upperRail = ASRS.attrs.drawsurrogate.subnodes["TopRail"]; lowerRail.size.x = rand; upperRail.size.x = rand;
16 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