The Autodesk.Revit.DB.Fabrication.DesignToFabricationConverterResult
class is used to represent the result of converting a design model to a fabrication model in Autodesk Revit.
This class has the following properties:
Success
: This property returns a boolean value indicating whether the conversion was successful or not.Message
: This property returns a string value containing a message that describes the result of the conversion.The DesignToFabricationConverterResult
class is used by the IFabricationConversionService
interface to return the result of the conversion process.
The following example shows how to use the DesignToFabricationConverterResult
class:
IFabricationConversionService conversionService = FabricationServiceManager.GetConversionService();
DesignToFabricationConverterResult result = conversionService.ConvertDesignToFabrication(model);
if (result.Success)
{
Console.WriteLine("The conversion was successful.");
}
else
{
Console.WriteLine("The conversion failed with message: {0}", result.Message);
}
In this example, the ConvertDesignToFabrication
method of the IFabricationConversionService
interface is used to convert a design model to a fabrication model. The DesignToFabricationConverterResult
object returned by this method is then checked to see if the conversion was successful or not.