User Manual - Page 3975

For AUTOCAD 2011.

Loading ...
Loading ...
Loading ...
</Item>
<Item idStr="holes">
</Item>
</Data>
</Recipe>
</AecRecipeSpec>
A RecipeSpec is composed of one or more Recipes. Each Recipe is responsible
for creating a single view of the component. In the example above, the first
Recipe creates a side view of the drawing, and the second creates an end view.
When the component is inserted in a drawing, the user-configurable View
setting on the Properties palette determines which recipe is used.
Each Recipe contains the following four major sections:
â–  Implementation: This section identifies the function to call and includes
information specific to the particular language in which it is implemented.
In short, it specifies how to call the Recipe function (RcpFunc).
â–  Controls: This section defines controls that will be added to the Properties
palette. The control can be defined directly here, or it can reference a
globally defined control in the <ControlDefs> section that is part of the
overall RecipeSpec.
â–  Data: This section has customization data that the Recipe function can
retrieve to help control how the component is drawn, such as layer and
hatch pattern information.
â–  Options: This section specifies options for the Jig or JigEnt that is used to
place the component.
In short, the <Data> and <Controls> sections help define what the basic
component looks like, and the <Options> section helps define how the
component is placed. In many cases, you will not need an <Options> section,
because the default behavior of the Jig is sufficient.
Each of these sections is described in more detail further on in this section.
Id Strings
Everything in the RecipeSpec that needs to be identifiable programmatically
has an idStr attribute. The idStr value should never change and should be
unique within the file (or at least within a given element type). The Rcp
function will be expecting ID strings with certain values, so when writing a
RecipeSpec, you need to know the implied contract from the Rcp function.
Recipe Specifications | 3919
Loading ...
Loading ...
Loading ...