News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Item Count Report

Started by bosser55, September 14, 2022, 06:41:58 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bosser55

I was able to figure this out in AutoCAD, but can't in TurboCAD. If there has already been a topic on this I apologize for not being able to find it.

I am a lighting designer and create 2D drawings that have lighting fixture symbols that are made up of three elements - housing, trim, and module. I need to create symbols that have attributes that define each of the three in a single item. This has worked well by using a symbol with a text code like "D1.DA.DM04", where there may be dozens of each octet, or there may be only one. For example, the D1 housing may exist on every symbol, but the DA trims and especially the DM modules will be different. What have spent hours trying to figure out is how to get a count of each item, i.e. 75ea D1, 25ea D4, 100ea DA, etc. In AutoCAD I can extract this report in a .csv format and copy and paste it into an Excel database I have built to convert the code to model numbers and price the project.

I've been trying to do this using Blocks and the Database feature, but I can't get it to total by item code. I've found a couple of references to "select by attribute" and a total at the bottom of the screen, but that's not reliable enough (too large a chance for human error), and is operationally very inefficient.

I thank you in advance for any light you are able to shine on this issue.
Robert Ridenour
Auriel Enterprises, LLC
Lighting Design & Fixtures

TC 2022 Professional

Jeff_in_90620

I would create each specific combination of characteristics as a single Block item.  Call out as many of them as needed, then run a Bill of Materials (aka Database).


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Torfinn

Can't you just select them all and export to excel and sort them there, if you cant do it in TC
And also "Select by Similar" should work on it

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

bosser55

Quote from: Jeffin90620 on September 14, 2022, 06:51:33 PMI would create each specific combination of characteristics as a single Block item.  Call out as many of them as needed, then run a Bill of Materials (aka Database).


Jeff


Thanks for the reply Jeff. I started by defining Database fields (Housing, Trim, Module, Device). I've tried the fields as text and integer, but cannot get the report result I need. I then created a set of graphics and text that can be copied, modified and combined into a block. I create the block then use the Properties>Custom dialog to assign the part number (D1 for the Housing field, for example). I then created a report. I can get the report to list out the items, and the summary view gets close to the result I need (it shows the number of each combination of items, i.e. 5ea D4.DA.DM04) is how many D4's there are.

It seems like I am close, but I can't close the final distance.
Robert Ridenour
Auriel Enterprises, LLC
Lighting Design & Fixtures

TC 2022 Professional

bosser55

#4
Quote from: Torfinn on September 14, 2022, 07:05:53 PMCan't you just select them all and export to excel and sort them there, if you cant do it in TC
And also "Select by Similar" should work on it

Torfinn

Hi Torfinn -

I'm trying to avoid a manual select as it is easy to forget to select a group. Plus I'm I don't know how to do what you recommend. In AutoCAD I was able to define any number of different blocks and count them. Light switches, outlets, fixtures, etc., it didn't matter as long as it had an attribute that met the report criteria it would be counted. The .csv output was then copied and pasted into Excel and pivot tables did the rest. I don't have to use that exact methodology with TurboCAD, but I do need it to count all the objects on the model that meet the reports criteria.
Robert Ridenour
Auriel Enterprises, LLC
Lighting Design & Fixtures

TC 2022 Professional

nikkipollard

#5
It has been a long time since I worked with acad. The process is very similar in Turbocad except there is no coding required.
 Set up attributes for each block and extract with a database tool.

Getting the data depends on the version you are using.
In the platinum version there is a database tool. The old version of deluxe I had had an extract attributes tool - I am not sure if it is available still

the extract attributes tool
http://docs.imsidesign.com/projects/TurboCAD-2021/turbocad-2021-user-guide-publication/Groups-Blocks-and-the-Library/Blocks/#block-attributes

The database tool
https://turbocaddoc.atlassian.net/wiki/spaces/TC21UG/pages/14320200/Step+4-+Create+the+Report

For the database tool - you don't need to define custom properties, if you have block attributes
you select the block attributes from the list of attributes.

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Jeff_in_90620

Quote from: bosser55 on September 14, 2022, 07:32:20 PMI create the block then use the Properties>Custom dialog to assign the part number (D1 for the Housing field, for example).

I'd just use the Part Number as the name of the Block item.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

nikkipollard

Quote from: Jeffin90620 on September 14, 2022, 10:57:03 PM
Quote from: bosser55 on September 14, 2022, 07:32:20 PMI create the block then use the Properties>Custom dialog to assign the part number (D1 for the Housing field, for example).

I'd just use the Part Number as the name of the Block item.


Jeff

Sometimes you need more data then just the part name
you can use the same block for a light fitting, and change the attribute value per light fitting. Saves having hundreds of different blocks for the same thing just different data values.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

bosser55

Thanks for the input everyone.

Nikki is correct, I need dozens of combinations of housing, trim and module. A part number only solution means I have to mine the part number in Excel to determine which of each element is specified. Not impossible, but I'm looking for an easier solution.

I think I am getting close to having this figured out, and Nikki your suggestion was crucial. I'm using TCPro 2022, and I'm working down the path of Attributes combined with a Database report. I'm not quite where I want to be, but the tumblers are clicking in the lock. I'll update when I reach my final conclusion.
Robert Ridenour
Auriel Enterprises, LLC
Lighting Design & Fixtures

TC 2022 Professional

Jeff_in_90620

Quote from: nikkipollard on September 15, 2022, 02:38:06 AMuse the same block for a light fitting

Seems to me that, if each different "light fitting" requires a different combination of hardware, then a 'part number' (aka Lookup Reference) is well-suited for the task.  A spreadsheet could easily expand the reference to an item count in the appropriate column, with each column being totaled for the BOM.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

nikkipollard

Jeff google electrical layout symbols - you will see why one symbol can work for a whole range of things.
Often it is just a letter that changes.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Jeff_in_90620

Quote from: nikkipollard on September 16, 2022, 03:48:34 PMgoogle electrical layout symbols - you will see why one symbol can work for a whole range of things.
Often it is just a letter that changes

I am an electronic engineer, so I am well-acquainted with part number variations in electrical symbols.  For integrated circuits, a 'D' means SOIC (Small Outline Integrated Circuit) and 'N' means DIP (Dual Inline, Plastic case).

These have the same base part number, but will have different pin numbers assigned to each function as well as different footprints and mounting requirements, so the part numbers include those suffixes because they are different.


Jeff

Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

bosser55

I finally got back into this task and had to make it work this time. I really struggled with making the Block Attributes work. The TCAD help section simply didn't work for me. Maybe I'm an idiot. Here's what I ended up doing, just in case it helps someone else.

1. COPY FIXTURE SYMBOL AND MODIFY AS NECC (I am using the same graphic symbol for a 4" can, but with different attributes)
2. DRAG TO BLOCK PALETTE AND NAME IT USING CODE (my code is D4.DA.DM90 for example)
3. SELECT THE BLOCK
4. CTRL+SPACE (edit entity)
5. DRAW>BLOCK>BLOCK ATTRIBUTE
6. SET LOCATION WITH CURSOR AND TYPE SKU (D4.DA.DM90)
7. SET DEFAULT TEXT IN LOWER LEFT CORNER TO MATCH (don't forget this one!)
8. CHECKERED FLAG (finish)
9. PROPERTIES BUTTON AT LOWER LEFT
10. VERIFY PROPERTIES (sanity check)
11. OK
12. END EDIT - UPPER LEFT
13. DELETE AND REPLACE THE ORIGINAL TO SHOW PART NUMBER (for some reason the original block does not show the attribute text, but if you drag another one in it does. weird)
12. MODIFY REPORT BY ADDING ALL BLOCK ATTRIBUTES TO THE SHOW BOX EACH TIME YOU RUN IT (the only way I could get each item used in the drawing into a report was to modify the report each time I generated it to include the items. the list of items in the report under ATTRIBUTES shows all of the blocks used in the drawing and the report, in SUMMARY will total the items.

I'm sure there is a better way to do this, but without some sort of YouTube video or step by step like above I simply couldn't find it.
Robert Ridenour
Auriel Enterprises, LLC
Lighting Design & Fixtures

TC 2022 Professional

nikkipollard

You can Sync attributes to get the original block to show the attributes.
I have only recently started using Autocad  again. So I might have the process, for creating blocks with attributes, wrong.
In Autocad it seems you can only add attributes via the block editor.
In Turbocad you can draw the attributes with the other graphics. No need to add them after the fact.
You will find that a lot of Turbocad processes have fewer steps then Autocad. It is confusing at first but once you get used to them it is a huge time saver.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h