View Single Post
  #1  
Old 04-17-2006, 01:14 PM
realtytrac realtytrac is online now
Registered User
 
Join Date: 04-17-2006
Posts: 16
questions using the object model

I am writing a .NET application to interface with Visual Build using its API. I have been looking through the object model reference and it has been slightly helpful. If there is a place that has more details, please let me know.

one issue that i am currently having is that the object model reference says that the Project object has a Steps object. But when i reference the VisBuildSvr library in my .NET app, when i come to the Application.Project object, a Steps object does not exist. All the other objects (such as Scripts) exist, but that doesn't. Any reason why?

Application x = new ApplicationClass();
x.Project.Load(@"C:\Working\RealtyTrac\Visual Build Scripts\SEOFactory-Build.bld");
x.Project.Steps[x.Project.FindStep("Get Latest SEOFactory",StepTypeEnum.vbldStepMain,-1)] //This line won't compile.


Another issue i am having is building the project. I try the following code, but nothing happens:

Application x = new ApplicationClass();
BuilderClass builder = new BuilderClass();
x.Project.Load(@"C:\Working\RealtyTrac\Visual Build Scripts\SEOFactory-Build.bld");
builder.Initialize(x);
builder.Start(StepTypeEnum.vbldStepMain,1,0);
Reply With Quote