Associate a data shortcut project to the input drawing. The caller will set working folder to parent directory of the project path corresponding to the project id. The caller will set input project to active project.

Namespace: Autodesk.Civil.DataShortcuts
Assembly: AeccDataShortcutMgd (in AeccDataShortcutMgd.dll) Version: 13.4.2516.0

Syntax

C#
public static void AssociateDSProject(
	string projectId,
	Database drawing,
	bool isSave
)
Visual Basic
Public Shared Sub AssociateDSProject ( _
	projectId As String, _
	drawing As Database, _
	isSave As Boolean _
)
Visual C++
public:
static void AssociateDSProject(
	String^ projectId, 
	Database^ drawing, 
	bool isSave
)

Parameters

projectId
Type: System..::..String
Project id.
drawing
Type: Database
Drawing to be associated.
isSave
Type: System..::..Boolean
If the caller needs to save the drawing finally.

Examples

This example shows how to call this method with param projectPath and drawing.
CopyC#
1string projectId = DataShortcuts.GetDSProjectId(projectPath);
2DataShortcuts.AssociateDSProject(projectId, drawing, false);

See Also