Page 574 - ExtendSim User Guide
P. 574

Tips and Reference
This chapter is has some E3D tips and provides reference for the E3D environment. It covers: • Tips when calling 3D functions from equation blocks
• Performance considerations
• ExtendSimcommandsandoptionsfor3Danimation
• TheAnimationtabs–AnimateItemandAnimateBlock • 3DenabledblocksintheAnimation2D-3Dlibrary
• Menus in the E3D Editor
☞ The four controls located along the top of the E3D window are described in “Interface con- trols” on page 468.
Using an Equation block to call E3D functions
E3D functions, such as E3DCreateObject or E3DPostCreateObject, can be called from an equation type block. This adds tremendous flexibility to your 3D modeling capabilities. How- ever, the E3D animation mode that is currently enabled (QuickView, Concurrent, or Buffered) impacts the functions that you will want to call, especially when referencing 3D objects that represent items. (For a description of the three animation modes, see “3D Animation tab of Simulation Setup dialog” on page 551.)
Most E3D functions have a “post” and “non-post” version. The difference is that the post ver- sion of a function includes a time argument that allows the E3D engine to synchronize the real time to the 3D animation time. For example, the two functions E3DCreateObject and E3DPostCreateObject differ only in that E3DPostCreateObject has a time argument. The time argument is nearly always set to “CurrentTime”, the current simulation time.
3D objects that represent items
• IftheE3DmodeisConcurrentorBuffered,thenyoushouldusetheposttypefunctions when dealing with 3D objects.
• In QuickView mode, where 3D actions happen immediately without a real-time synchroni- zation, you should use the functions that operate on the 3D item object immediately.
3D objects that represent blocks or scenery
When the 3D objects represent blocks or scenery and the E3D mode is Concurrent or Buffered, use the post functions if you want to change them at a specific point in time. If you are not con- cerned about time (for example you want to create an object, rotate, or mount an object when the model opens), you can use the non-post functions.
☞ In general, you should not use the post functions when the simulation is in QuickView mode.
Hierarchical blocks and 3D animation
By default, hierarchical blocks and the blocks within them have no representation in the E3D window. Through dialog settings however, some or all of the enclosed blocks can be repre- sented by 3D objects.
To cause a block within an H-block to have a 3D object representation, check Link to enclosing H-block on the block’s Block Animation tab. If 3D representation is chosen for multiple blocks within the H-block, each 3D object will appear in the E3D window in the same positional rela- tionahsip that the block has inside the hierarchical block.

   572   573   574   575   576