It would be handy to have a method to sync Preactor.CreateRecord and POM.GetOperation(recNum). This could also be applicable to the other base types for use outside the sequencer.
Closed Jun 25, 2012 at 8:28 AM by bvsms


bvsms wrote Jun 19, 2012 at 8:16 AM

I am thinking of creating an abstract Create() method inside the PreactorRecord class that will need to be overridden by the base implementations, so that we can create a new record like this:

var op = Operation.Create(); // Will return a new IOperation object
var res = Resource.Create(); // Will return a new IResource object


bvsms wrote Jun 19, 2012 at 9:02 AM


Just pushed up a new commit with a POM.CreateRecord<T>() method.
Let me know if this will work for you and I will close this issue.

You can write a wrapper in the project specific file (i.e pomExtensions.cs) to return the type you want:

public Operation CreateOperation(this PreactorObjectModel pom)
return pom.CreateRecord<IOperation>() as Operation;

mtravan wrote Jun 25, 2012 at 2:15 AM

The create works well, Thanks Ben