Exemplo n.º 1
0
 public static IObservable <IModelDoc2> DocOpenObservable(this SldWorks swApp)
 {
     return(swApp.DocumentLoadNotify2Observable()
            .Select(args => swApp
                    .GetDocuments()
                    .CastArray <IModelDoc2>()
                    .Single(doc => doc.GetTitle() == args.docTitle && doc.GetPathName() == args.docPath)
                    ));
 }