A Picture control can have the following elements:
Element
<Default> [Optional]
<Validation> [Optional]
Specifying Controls
When the same control is used by different Recipes within the same RecipeSpec, you can define them in the
<ControlDefs> section and then reference them within the <Controls> section of a specific Recipe.
<ControlRef idRef="head"/>
Simply use the idRef attribute to refer to the idStr of the Control that is defined in the <ControlDefs> section.
The following example shows a control defined at the <RecipeSpec> level that can be referenced from any <Recipe>.
It also shows a control that is defined local to a specific <Recipe>.
<?xml version="1.0" encoding="UTF-8"?>
<AecRecipeSpec defaultUnit="in">
<ControlDefs>
<CheckBox idStr="hatchBlock">
<Label>Hatch block</Label>
<Description>Specifies whether to hatch the block. </Description>
<Default>1</Default>
</CheckBox>
</ControlDefs>
<Recipe idStr="section">
<Label>Section</Label>
<Implementation>
<ObjectARX>
<AppName>AecDtl50</AppName>
<RcpFunc>ConcreteUnit2CoreSection</RcpFunc>
</ObjectARX>
</Implementation>
<Controls>
<ControlRef idRef="hatchBlock"/>
<CheckBox idStr="hatchCores">
<Label>Grout fill cores</Label>
<Description>Specifies whether to hatch the cores solid with grout.</Description>
<Default>0</Default>
</CheckBox>
</Controls>
<Data> Section
This section has customization data that is used by the Rcp function. This includes things like simple Layer/Color/Linetype
properties, hatch pattern information, spacing parameters, and so on. It is the Rcp function's responsibility to look
back to this section and find any data that may be relevant.
There is an implicit contract between the Rcp function and the RecipeSpec. The Rcp function can decide what is allowed
to be in the <Data> section, but it will usually contain a set of commonly seen elements. You can put virtually anything
in the <Data> section, but if the Rcp function is not expecting it, it will be ignored.
The data within this section is divided into <Item> sections. Each Item section can contain virtually anything that the
Recipe dictates. An Item section usually defines the data for a portion of the overall component, such as boundary",
infill", and hidden".
The following standard types of information appear regularly within an Item section:
<AcadEntityProps>
<AcadBlockProps>
<AcadMInsertProps>
<AcadHatchProps>
<Params>
2156 | Chapter 52 Customizing and Adding New Content for Detail Components
Description
The idStr of the <PictureValue> to show by default.
The idStr of the <PictureValue> to show under a multiple selection
condition in the Properties palette. If not specified, the <Default> is
used.
Need help?
Do you have a question about the 24108-051400-9000 - AutoCAD Revit Architecture Suite 2008 and is the answer not in the manual?