Autodesk
Developer Network
AEC Detail Framework
Implementing a Recipe
Function in Managed API
§Retrieve data from database (.mdb)
§
§
§Retrieve data from recipe specifications (.xml)
§
§
§Retrieve data from palette (UI)
§
§
§Finally, draw entities with a jig
§
x =
DtlUtils.Database.GetFieldValueDoubleUnitDependent("SIZE_X");
y =
DtlUtils.Database.GetFieldValueDoubleUnitDependent("SIZE_Y");
strPosition =
DtlUtils.Recipe.GetDataValueString("label",
"Position");
dHeightFactor =
DtlUtils.Recipe.GetDataValueDouble("label",
"HeightFactor");
strJig =
DtlUtils.Palette.GetPropertyValueString("jig");
bHatch =
DtlUtils.Palette.GetPropertyValueBool("hatch");
Recipe.ReturnStatus = JigUtilities.StampIt(compBuilder);