Share

DataShortcuts.AssociateDSProject(String, Database, Boolean) Method

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. Please manually right-click "Refresh" under the "Data Shortcuts" node in C3D's "Prospector".



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

Syntax

C#

public static void AssociateDSProject(
	string projectId,
	Database drawing,
	bool isSave
)

VB

Public Shared Sub AssociateDSProject ( 
	projectId As String,
	drawing As Database,
	isSave As Boolean
)

C++

public:
static void AssociateDSProject(
	String^ projectId, 
	Database^ drawing, 
	bool isSave
)

Parameters

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

Example

This example shows how to call this method with param projectPath and drawing.

1string projectId = DataShortcuts.GetDSProjectId(projectPath);
2DataShortcuts.AssociateDSProject(projectId, drawing, false);

See Also

Reference

Was this information helpful?