Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

M_AMLEngineExtensions_ExternalizationExtensions_SaveSplitModelParts_1

AutomationML edited this page Feb 23, 2017 · 2 revisions

ExternalizationExtensions.SaveSplitModelParts Method (CAEXDocument, String, Boolean, Boolean, List(String))

Split a model at defined split points, insert the appropriate ExternalReferences and proxy objects, save each of the parts split off and the remainder separately to file, and re-merge the parts split off for further processing as a whole, removing unneeded ExternalReferences again.

Namespace: AMLEngineExtensions
Assembly: AMLEngineExtensions (in AMLEngineExtensions.dll) Version: 3.5

Syntax

C#

public static bool SaveSplitModelParts(
	this CAEXDocument doc,
	string filePath,
	bool saveLibraries,
	bool prettyPrint,
	List<string> otherAMLFilesToCheckForConsistencies
)

C++

public:
[ExtensionAttribute]
static bool SaveSplitModelParts(
	CAEXDocument^ doc, 
	String^ filePath, 
	bool saveLibraries, 
	bool prettyPrint, 
	List<String^>^ otherAMLFilesToCheckForConsistencies
)

Parameters

 

doc
Type: CAEX_ClassModel.CAEXDocument
(this) The document to split into parts.
filePath
Type: System.String
The path where to store the remainder after splitting off at defined split points.
saveLibraries
Type: System.Boolean
If true, libraries that have split points defined will be split off and saved, too.
prettyPrint
Type: System.Boolean
If true, indent the XML output.
otherAMLFilesToCheckForConsistencies
Type: System.Collections.Generic.List(String)
Stringlist of other CAEX files that shall be included into the merge procedure.

Return Value

Type: Boolean
True iff not an error.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CAEXDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

ExternalizationExtensions Class
SaveSplitModelParts Overload
AMLEngineExtensions Namespace

  • Introduction
  • [Version History](Version history)
    • [Version 3.5](Version 3.4)
    • [Version 3.1](Version 3.0)
    • [Version 2.1](Version 2.1)
    • [Version 2.0](Version 2.0)
  • [Getting Started](Getting started)
  • Examples
  • AMLEngine API
BEST Practice Content

Extensions

CAEX Elements

AutomationML

Utilities

Interfaceclasses

Exceptions

Objecttables and Document validation

Clone this wiki locally