API object model |
Top | Previous | Next |
The object model for Woodwork for Inventor is shown below.
Brief description of the objects:
MaterialLibrary - an object for accessing materials in the Woodwork for Inventor material database. All materials in the database are grouped into palettes. As you know, during the installation of Woodwork for Inventor, a Woodwork for Inventor palette is created, which is the first one in the palette collection.
Palette - an object that is used to store records of individual materials (Palette Items).
PaletteItem - an entry containing a description of a fill material that does not have a colour property. This group includes the following types of materials: ▪Solid ▪Board ▪Multilayer Board ▪Rod
PaletteItemWithColor - an entry containing a description of a fill material that also has a colour characteristic. This type of object has all the properties of palette items and in addition has a colour characteristic. This group includes the following types of materials: ▪Laminated Board ▪Desktop
CoverPaletteItem - is an entry containing a description of a cover material. This type of object has all the properties of a palette item with colour and in addition has a thickness characteristic. By the way, thickness is declared in Autodesk Inventor’s internal length units – centimeters. This group includes the following types of materials: ▪Edge Band ▪Veneer ▪Paint
|
MaterialAssignment - an object that is used to control the actual assignment of fill material and cover material. Material information is carried by objects of palette item type.
Note that the fill material type is assigned to the Autodesk Inventor API Part Document object, while the cover material type can be assigned to the Autodesk Inventor API Face object. Therefore, the objects such as Palette Item and Palette Item With Color are applied to the Part Document object and the Cover Palette Item is applied to the Face object.
AssignmentOptions - applied when working with Cover Palette Item. These options provide additional information about the attachment conditions for the cover material. For example, the information about the position of the cover material relative to the part model.
|
GrainDirection - used to control the direction of the texture of the material. Here it is possible to manipulate the texture direction of both fill material and cover material.
|
WorkpieceOversize - used to control the workpiece oversize. When a material is assigned to an element, its geometric characteristics are used to calculate the dimensions of the workpieces required to produce the designed part. In addition, the oversizes of these workpieces can be manipulated. Since different types of materials have different behavior, different objects are used to service them. For example, a Veneer type material may have oversizes in length and width, while an Edge Band type material may have oversizes only in length. Therefore, we have several types of objects that allow us to control these oversizes:
FillWorkpieceOversize - controls the oversizes of the fill material category which includes the following materials: ▪Solid ▪Board ▪Laminated Board ▪Multilayer Board ▪Rod
EdgeBandOversize - controls the oversize of the Edge Band material. VeneerOversize - controls the oversize of Veneer type materials. PaintWorkpieceOversize - controls the quantity oversize for the Paint material type. |
You can learn more about the objects, their methods and the data stored in them in the help file that comes with the installation of Woodwork for Inventor and is available on:
C:\Users\Public\Documents\Woodwork for Inventor\2025\v15\SDK\API