Repository.URD.GetURD

Gets the URD with the designated ID number and returns it as a cURD object. Returns nothing if the URD does not exist or is not in the current project.

Syntax
.URD.GetURD(ID)

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

Example
This example assumes that a URD with ID#1 exists in a repository. VBA MyRepository Repository 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 MyURD cURD MyRepository.Project.SetCurrentProject(1) MyURD = MyRepository.URD.GetURD(1) URDName String URDID Integer URDName = MyURD.Name URDID = MyURD.ID MsgBox ( & URDName &  & URDID)