The TableFill command will help you quickly fill tables on sheets (layout), taking the data extraction style from the table name, and the data itself from all sheet views. That is, having found the text in the first cell of the table (most likely this is the table header), the command will look for a style with this name in all data extraction commands (Sawing Table, Data Table, Material Table, and Drill Table) and, if it finds one, it will call this command, substituting all objects from all viewports and ModelDoc views as source data.
The command can process both selected tables and all tables on all sheets at once. The command does not work in the model space.
It is especially convenient to use this command when your DWT template already has sheets with empty tables with the correct headers. All you have to do is insert these sheets into your drawing, create a view (viewport or the _ViewBase command), and then simply call TableFill.
This command can be called from the Assembly Drawings (AsmDraw) command.
The TableFill command is not provided as a separate plugin. You can use this command only if you purchase a license for the Data Table or AVC Pro plugins.
Create a drawing template (DWT or DWG).
Add a sheet (Layout) or several sheets of different formats to it.
Add a table of any style to some sheets. Leave it blank, but in the very first cell, write a table title. Only the table's position on the sheet is important. The program will add rows and columns later.
Configure one of the AVC table commands (any for which you have a license). Create a new style for this command and name the style exactly the same as the table in the template. The names must match letter for letter, including spaces. Configure the filter for selectable objects. There is no need to configure data sources—they will be replaced by "Sheet Views." More details are available in a separate chapter.
Create a new drawing, either based on a template or without one.
When the model is ready, insert a new sheet (Layout) from the drawing template into your new drawing. Create viewports or ModelDoc views with parts or assemblies on the sheet; leave the table alone.
When all sheets are ready, call the TableFill command.
You can select one or more tables on the sheet. Alternatively, select the "allTables" command option, and the program will search all tables on all sheets (but not in the model).
The program will then do the rest automatically:
It will find a table command for which you have a license and which has a style as the table header. The style is searched for in the following commands: Sawing Table, Data Table, Material Table, and Drill Table. If there are styles with the same name, the first one found in the order listed will be selected. This means Sawing Table takes precedence.
Override the style settings by specifying the "Sheet Views" data source. You cannot force the program to work with only one view or with selected objects. Therefore, it is important to set up filters for selected objects correctly.
All parts and blocks from all sheet views will be processed by a single table command, and the table will be filled based on them.
The table properties will record which command populated them and the "All Views" data source. Next time, you can use TableUpdate to update the table data. You can see the exact command used and its table style number in the AVC Properties Palette.
Press F2 to see what went wrong in the command line.
It's important to properly configure the table command so that it can accurately count parts and assemblies when extracting objects from views. TableFill always works with objects in viewports and ModelDoc views.
To calculate the number of assemblies needed in an assembly drawing or the number of solids needed in a detailing drawing, check the Count Assemblies checkbox. The program will then search the entire model for identical blocks or parts as in the view. The quantity will be shown based on what's in the model, not what you see in the viewports.
If you've created an extra copy of a part in the model using the Lay command or an assembly copy using the Expose Assemblies command, check the "Exclude Selected" checkbox to reduce the count by one, based on the assembly or part visible in the viewport.
Turn off layers containing unnecessary copies of blocks and parts or configure the Ignored Layers setting. However, don't add the Excluding layer to the list of ignored layers. Objects on this layer won't be counted anyway, but the Expose command assigns this layer to assembly copies. If you ignore it, the view data extractor won't find anything at all.
Note that the Expose Assemblies program has its own object selection filter settings, and in the Assembly Drawings (AsmDraw) program, assemblies will first be selected to create viewports, and then the table filler will be called, which will extract the assemblies from the viewports. If the settings are incorrect, you may get different numbers of assemblies in the headers and in the table. The easiest way is to enable the Count Assemblies option in both.