Skip to Main Content Skip to Search
Product Documentation

new - Create project, library, or build configuration in IDE

Syntax

IDE_Obj.new('name','type')

IDEs

This function supports the following IDEs:

Description

IDE_Obj.new('name','type') creates a project, library, or build configuration in the IDE.

The name argument specifies the name of the new project, library, or build configuration

The type argument specifies whether to create a project, library, or build configuration. The options are:

When type is 'project' or 'projlib' , name can include the full path to the new file. You can use the path to differentiate two files with the same name. If you omit the path, the new method creates the file or project in the current IDE working folder.

If you omit the type argument, and the name argument does not include a file extension, type defaults to 'project'.

When type is 'buildcfg', use a unique name to differentiate the build configuration from other build configurations in the active project.

The new method no longer supports 'text' as a type argument.

Examples

IDE_Obj.new('my_project','project') #Create an IDE project, 'my_project.gpj'
IDE_Obj.new('my_build_config','buildcfg') #Create a build configuration.

See Also

activate | close

  


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