public static void Register(AddInId addInId) { ISharedParameterManager parameterManager = new SharedParameterManager(); PilingCoordinator coordinator = new PilingCoordinator(parameterManager); PilingUpdater.Register(addInId, coordinator); CoordinatePilingUpdater.Register(addInId, coordinator); }
public SharedParameterManager GetSharedParameterManager(ExternalCommandData commandData) { var doc = commandData.Application.ActiveUIDocument.Document; if (!doc.IsFamilyDocument) { return(null); } var sharedParameterFilePath = commandData.Application.Application.SharedParametersFilename; var sharedParamManager = new SharedParameterManager(); return(sharedParamManager); }