Skip to Main Content Skip to Search
Product Documentation

Import Physical Modeling XML Dialog Box

Mechanical Import Dialog Box Overview

The Import Physical Modeling XML dialog box provides the same control over generating SimMechanics models from Physical Modeling XML files as does the mech_import function with inputs. The dialog box has two tabs, Import and Advanced Options.

To generate a SimMechanics model from a Physical Modeling XML file:

  1. In the dialog box, enter your settings.

  2. Click Apply.

  3. To complete the function and start the file import, click OK.

  4. If you need to stop the file import, click Cancel.

Import Tab

The Import tab has several active areas: the XML File field, the Import mode selection area, and two specifications for import into existing models and subsystems.

Advanced OptionsTab

The Advanced Options tab has several active areas: Model simplification, Layout, Update, and Backup.

Model Simplification.  If you choose to create a new model or to add to or replace contents in an existing model, this area is active.

Layout.  The area is always active.

Update.  If you choose to update an existing model, this area is active.

Backup.  If you choose to update, add to, or replace contents in an existing model, this area is active.

The backup version of the updated model is the most recent version before the current update.

See Also

XML file

Name of Physical Modeling XML file

Settings

Default: blank

Enter the name of a Physical Modeling XML file, including its absolute path on your system. There is no default name.

Tips

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Import mode

With a specified XML file, you can:

These choices are mutually exclusive.

Settings

Import into new model

Default: selected

Select this option to create a new model from the specified XML file.

Update existing model

Default: cleared

Select this option to use the specified XML file to update an existing model.

By default, the importer updates the model with the same name in the XML file.

Add to existing model

Default: cleared

Select this option to use the specified XML file to add to an existing model.

By default, the importer adds to the model with the same name in the XML file.

Import into existing model (replace model or subsystem contents)

Default: cleared

Select this option to use the specified XML file to replace contents of an existing model or subsystem.

By default, the importer replaces contents in the model with the same name in the XML file.

Tip

If you want to specify a different model, different subsystem, or both, use the Specify model to import into and Specify subsystem to import into options.

Dependencies

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Specify model to import into

Enable specification of name of model into which you want to import. Use this option if you want to specify:

Settings

Default: Off

On

You want to specify the name of the model into which you want to import the XML file. If you select the check box, you must also specify a model name.

Off

You do not want to specify the name of a model into which you want to import the XML file.

Dependency

If you select the check box, the Model name field is active.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Model name

Name of model to import into. There is no default name.

Settings

Default: blank

Specify the model name.

Tip

You can search for files with a file browser by clicking the ... button. Clicking this button opens a file browser in the current working folder.

Dependencies

the file browser ... button is active.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Specify subsystem to import into

Enable specification of name of subsystem into which you want to import. Use this option if you want to specify:

Settings

Default: Off

On

You want to specify the name of the subsystem into which you want to import the XML file. If you select the check box, you must also specify a subsystem name.

Off

You do not want to specify the name of a subsystem into which you want to import the XML file.

Dependencies

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Subsystem name

Name of subsystem to import into. There is no default name.

Settings

Default: blank

Specify the subsystem name.

Dependency

If you select the Specify subsystem to import into check box, the field is active.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Create new subsystem if it does not exist

If specified subsystem does not exist in target model, create new subsystem.

Settings

Default: Off

On

If the specified subsystem does not exist in the target model, create a new subsystem.

Off

Do not create a new subsystem in the target model.

Dependency

The check box is present when you set the Import mode to Add to existing model.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Model simplification

You can:

These choices are mutually exclusive.

Settings

No model simplification

Default: selected

Select this option to follow the imported subsystem hierarchy with no changes.

Bring imported joints to top level and group welded bodies

Default: cleared

Select this option to place all non-weld joints at the top level and all welded bodies into rigid subsystems.

Group welded bodies belonging to same subsystem

Default: cleared

Select this option to place welded bodies into rigid subsystems.

Tips

Dependency

The area is active when you set the Import mode to any option except Update existing model.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Name joints by joint type

Require that Joint blocks in generated model have short names.

Settings

Default: On

On

Ensure that Joint blocks in the generated model have short default names.

Off

Apply the Joint block names from the imported XML file.

Tips

Command-Line Information

For more information, see the mech_import function reference page.

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyNo impact
Safety precautionOff

See Also

Ensure block names do not overlap

If imported block names are long, enlarge spacing between imported blocks in generated model.

Settings

Default: Off

On

If the imported block names are long, enlarge the spacing between imported blocks in the generated model.

Off

Space the blocks only according to the block sizes, not the block names.

Dependency

The check box is active when you set the Import mode to any option except Update existing model.

Command-Line Information

For more information, see the mech_import function reference page.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNo impact
Safety precautionOn

See Also

Layout direction

Block diagram growth direction in the generated model

Settings

Default: Horizontal

Select one of two block diagram growth directions in the generated model, Horizontal or Vertical.

Dependency

The menu is active when you set the Import mode to any option except Update existing model.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Arrange all imported blocks

Arrange layout of all imported blocks in model block diagram being updated.

Settings

Default: Off

On

Arrange the layout of all imported blocks in the model block diagram being updated.

Off

Do not arrange the layout of the existing imported blocks when updating a model. Place newly imported blocks around the existing block diagram.

Dependency

The check box is enabled when you set the Import mode to Update existing model.

Command-Line Information

For more information, see the mech_import function reference page.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNo impact
Safety precautionOn

See Also

Respect individual block update settings

Comply with block settings that allow each block to be updated or prevent each block from being updated.

Settings

Default: On

On

On individual blocks in the model being updated, respect the settings that allow each block to be updated or prevent each block from being updated.

Off

Update whichever blocks in the model need to be updated, regardless of the individual block settings.

Dependency

The check box is enabled when you set the Import mode to Update existing model.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Add new joints at top level

Specify at which levels of imported model hierarchy to import new joints.

Settings

Default: Off

On

Add new joints in the updated model at the highest level of the model hierarchy, specified by either the Model name or the Subsystem name parameter.

Off

Add new joints at the levels in the hierarchy specified by the connectivity of the existing blocks.

Dependency

The check box is enabled when you set the Import mode to Update existing model.

Tip

This option only updates or imports blocks individually and cannot change the existing model hierarchy.

Command-Line Information

For more information, see the mech_import function reference page.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNo impact
Safety precautionNo impact

See Also

Backup mode

Control backup of previous version of generated model.

Settings

Default: Create backup in same folder

In the drop-down list, choose one of these backup options:

Dependencies

Command-Line Information

For more information, see the mech_import function reference page.

See Also

Backup model location

Control where you save backup of previous version of generated model.

Settings

Default: blank

Enter a location on your file system to place the saved previous version of your model.

Tip

You can enter the model location in the field manually, or click the ... button to search for a location with a file browser.

Dependency

When you select Specify location to create backup in Backup mode menu and you set the Import mode to one of these:

this field is enabled.

Command-Line Information

For more information, see the mech_import function reference page.

See Also

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS