MotionView User's Guide

Attachments

Attachments

Previous topic Next topic No expanding text in this topic  

Attachments

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

While assembling a model with different sub-assemblies, it is often necessary to connect or refer entities in one container to entities in another container. To retain modularity of the container entity so that they can be reused in a different context, it is recommended that you define connections to external entities by declaring them as attachments.

A physical analogy to attachments are ports (or plug-in points) on an electronic device. These ports are local or internal to the device and act as media to connect an external device.

Example

The image below shows a Cylinder 1 system in a four cylinder engine model. The Crankshaft and Engine Case bodies are external to the Cylinder 1 system. To define joints or forces between any of these bodies and bodies inside the Cylinder 1 system:  attachments with variable names b_crankshaft and b_enginecase are declared as attachments to the system, and these two bodies are referred to as the variable entity.

attachment_example_mv

See System and Assembly Panel - Attachments to learn about managing attachments.

NoteThe entity panel for the entity in the container shows a referred attachment entity with blue shading, as shown below:

attachment_example2_mv

In the MDL, the attachment is defined by *Attachment statement in the container entity definition block.

Attachment Tag and Attachment Candidates

An attachment for a container entity can carry an attachment tag that can help resolve attachments automatically. The attachment tag works in conjunction with the attachment candidate tag that is defined on an entity in a different container. MotionView finds entities that have the same string in the attachment candidate as that of the attachment tag and lists them as Recommended Entities in the model tree while resolving the attachment.

Example

Shown below is the Cylinder 1 Assembly which seeks a Crank pin attachment point.  This attachment (variable p_cp_att) has a “CrankPin” attachment tag. The crank pin point in the crank shaft assembly has a attachment candidate tag that has the value “CrankPin”.

Upon clicking the point collector point_collector_assembly_mv for this attachment, the model tree that is automatically displayed in the Select a Point dialog will have a Recommended Entities folder which lists the crank pin point in the crankshaft assembly.

attachment_select_a_point_dialog_ex_mv

In addition, the right-click context for any container in the Project Browser also has an Apply Attachment Candidates option.

attachment_apply_attach_cand_cntxt_menu_mv

This option resolves all attachments for a container automatically, by finding entities with attachment candidates that have the same string as that of attachment tag on attachments. If there is more than one entity as candidate for an attachment, a dialog is displayed which allows you to resolve it manually.

To define attachment candidates:

An entity is declared as attachment candidate by using the Attachment Candidates button attachment_candidates_icon_mv in the entity panel.

1.Select the entity that has to be declared as attachment candidate.
2.Click Attachment Candidates button attachment_candidates_icon_mv in the panel.

The Attachment Candidates dialog is displayed

attachment_candidates_dialog_mv

3.Click Add .

A tag entry is included in the dialog.

4.Click on the Tag field (indicated by <PleaseEnterTag>) and enter in a string.

attachment_candidates_dialog_add_tag_mv

5.From the Location drop-down menu, select single, pair, left, or right.
-For single entity types, single is the only option that is available.
-For pair entities, the tag can be applied for the pair, or left, or right.
6.Click Close.

The attachment candidate is created on the entity

NoteIn MDL, the attachment candidate is created by *AttachmentCandidate statement.  The tag value is set using the *SetAttachmentCandidateTag statement.