About Recipe Logging

Without knowing the implied contract of a Recipe function, it is hard to know (or debug) where all the values are supposed to come from. In some cases, there may be values for an existing Recipe that you could customize if you just knew they were there (and currently not specified).

Recipe Logging is a mechanism that will print to the command line every piece of data that is being retrieved by the Recipe. It will give the source of the data (for example, the component database, the Recipe Section, the Properties palette prompt), and whether the value was found or not. Using this information, you can reverse-engineer what data is expected by the Recipe.

The following is an example produced by running the 02/Brick Paver Recipe with Recipe Logging turned on.

Command: dtlcompmanager
RCP LOG > Source: Database
Field: WIDTH
Type: double
Required: True
Found: True
Value: 4.00000
RCP LOG > Source: Database
Field: LENGTH
Type: double
Required: True
Found: True
Value: 8.00000
RCP LOG > Source: Database
Field: THICKNESS
Type: double
Required: True
Found: True
Value: 1.50000
RCP LOG > Source: <Data>
Context: Item[@idStr='boundary']/Params
Tag: Chamfer
Type: double
Required: False
Found: True
Value: 0.00000
RCP LOG > Source: Prompt
Field: coarseOutline
Type: bool
Required: False
Found: False
RCP LOG > Source: Prompt
Field: doHatch
Type: bool
Required: False
Found: True
Value: True
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadHatchProps
Tag: HatchAlias
Type: str
Required: False
Found: True
Value: brick
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadHatchProps
Tag: PatternType
Type: str
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadHatchProps
Tag: PatternName
Type: str
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadHatchProps
Tag: PatternAngle
Type: double
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadHatchProps
Tag: ScaleMultiplier
Type: double
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadHatchProps
Tag: PatternScale
Type: double
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadEntityProps
Tag: Layer
Type: str
Required: False
Found: True
Value: A-Detl-Patt
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadEntityProps
Tag: ColorIndex
Type: long
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadEntityProps
Tag: Linetype
Type: str
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadEntityProps
Tag: LinetypeScale
Type: double
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='infill']/AcadEntityProps
Tag: Lineweight
Type: long
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='block']/AcadEntityProps
Tag: Layer
Type: str
Required: False
Found: True
Value: A-Detl-Medm
RCP LOG > Source: <Data>
Context: Item[@idStr='block']/AcadEntityProps
Tag: ColorIndex
Type: long
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='block']/AcadEntityProps
Tag: Linetype
Type: str
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='block']/AcadEntityProps
Tag: LinetypeScale
Type: double
Required: False
Found: False
RCP LOG > Source: <Data>
Context: Item[@idStr='block']/AcadEntityProps
Tag: Lineweight
Type: long
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: IsOrientedX
Type: bool
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: PromptStart
Type: str
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: PromptEnd
Type: str
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: AllowXFlip
Type: bool
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: AllowYFlip
Type: bool
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: AllowCount
Type: bool
Required: False
Found: False
RCP LOG > Source: <Options>
Context: Jig
Tag: PromptCount
Type: str
Required: False
Found: True
Value: Number of courses
RCP LOG > Source: <Options>
Context: JigEnt
Tag: IsOrientedX
Type: bool
Required: False
Found: False
RCP LOG > Source: <Options>
Context: JigEnt
Tag: Width
Type: double
Required: False
Found: False
RCP LOG > Source: <Options>
Context: JigEnt
Tag: GapSpacing
Type: double
Required: False
Found: True
Value: 0.25000
Start point or [Xflip/Yflip/Count]: End point or [Xflip/Yflip/Count]: <Ortho on> Start point or [Xflip/Yflip/Count]:

To turn Recipe Logging on, use the REGEDIT program to change a value in the Win32 Registry. The entry can be found in:

HKEY_CURRENT_USERSoftwareAutodeskAutoCADR17.1ACAD-XXXXProfilesAutoCAD ArchitecturePreferencesAecRcpBase50RecipeLog

Change this value to "1" to turn it on.

Change this value to "0" to turn it off.