Repository.URD.GetURD

Returns a cURD object that represents a given URD resource in the current project. Returns nothing if the URD does not exist or is not in the current project.

Syntax
.URD.GetURD(ID)

Parameters
ID
 * Required. Integer. The ID number of the URD to retrieve.

Example
This example assumes that a URD with ID #1 exists in the first project of a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyURD cURD MyRepository.Project.SetCurrentProject(1) MyURD = MyRepository.URD.GetURD(1) URDName String URDID Integer URDName = MyURD.Name URDID = MyURD.ID  MsgBox ( & URDName &  & URDID)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyURD cURD MyRepository.Project.SetCurrentProject(1) MyURD = MyRepository.URD.GetURD(1) URDName String URDID Integer URDName = MyURD.Name URDID = MyURD.ID  MsgBox ( & URDName &  & URDID)