Hello all

I work on a weldment file and its drawing. In Cutlist table I create column (Area)

Is there a way to calculate area of each items automatically. For example for item 1 600 x 547

Any help would be greatly appreciated

Hello all

I work on a weldment file and its drawing. In Cutlist table I create column (Area)

Is there a way to calculate area of each items automatically. For example for item 1 600 x 547

Any help would be greatly appreciated

Hi Tangi

A macro can be used for such purpose

look at the example: 2015 SOLIDWORKS API Help - Get Custom Property Values On Weldment Cut-list Folders Example (VBA)

Area can added for each cutlist item as property.

Unfortunately, it will not be dynamically changed. Hence, macro should be used each time when the part geometry is modified

If u think that this can solve your problem and you cannot find any standard solidworks solution then I will be happy to write such macro

Viktor

Hi Taghi,

Are you looking for the total surface area (front face, back face, and thickness) or just the area (i.e. 600 x 547 = 0.3282m²).

You can get the total surface area as a property, or you could set up an equation in your cut list.

Thanks

Mark

(SolidWorks 2016 sp1)

One way,

Create a bounding box around your parts.

Then in the cut list add columns for the bounding box length, width and area.

Then select the cut list item property and the custom properties drop down list where you should have length, width, (mm²) area, Save this cut list as a template.

Thanks

Mark

Another way, if you didn't wan to convert to sheet metal

Set up custom properties in your part , with length, width and area.

Link the length and width to the model size (so if you change the part the properties will also change.

Link the area to an equation. Make the equation to get the M².

Use a standard BOM instead of a weldment cut list and you should have the area as a property.

Use can also add the length and width using the bounding box functions if required.

Save the part file as a template.

Thanks

Mark

Taghi,

And here is your part file with the custom properties and equation added.

You will need to add a BOM to your drawing and add relevant columns.

Thanks

Mark

Hello Mark and thank you very much

yes if we have a file with one body it is impossible

but in weldment part with many body it is difficult . see attachment file

do you have any solution

Hi

Bit stumped now, when I try and add an equation it doesn't offer any thing from the part properties.

You can add the following in the equations, "SW-SurfaceArea"/1000²

Then link this to the component properties.

However this will give you the total surface area of the part, Not sure how you would get just one face.

Thanks

Mark

If you need to display the surface area only on your BOM (or table), you could simply make a formula directly into your BOM Template.

You'll need to add a new column to you current table and right after you've insert it, you should have a scrolling menu named "colum type" or something like that.

Choose "Equations" and noe you can easily set the formula you want using other cell value.

Here's the exemple (sorry, my SolidWork's in french, but you'll get the idea)

1-Add column

2-Set column's type to equation

3-Press the equation symbole to set your equation

4- Set your formula using the menu. In your case you could either make your equation based on your custom properties values, or in a case like this one where they're both shown in your table, you can also go with the column value:

5- Make your final formula, and apply

6- This is the result:

Hope it helps!!!

Hello,

A bit late, but this is along the lines of what Marcx has posted.

The area cutlist property is available in sheet metal, but not weldments, so you have to have SW perform the cutlist area calculation from the cutlist length and width.

You must use a BOM for this because cutlist tables don't have an equation column like BOM tables have.

Add the cutlist length and width each as a property column in the BOM, then add an equation column.

I used this equation: if('3D-BOUNDING BOX LENGTH'="";"";'3D-BOUNDING BOX LENGTH'*'3D-BOUNDING BOX WIDTH')

For square meters, use this equation: if('3D-BOUNDING BOX LENGTH'="";"";('3D-BOUNDING BOX LENGTH'*'3D-BOUNDING BOX WIDTH')/1000/1000)

If you just do length * width, structural members will shown "0". Using these equations, their area cells are blank.

Add a heading to your area column.

Hide the length and width BOM columns.

Cheers,

Kevin

Please look at this macro

http://cloud.ic3d.com.au.s3.amazonaws.com/macros/AreatocutList.swp

It gets bounding box from body in cutlist folder. If cutlist has more than one body then only area of the first body will be taken and multiplied by quantity:

0.855 x 0.1 = 0.086

2 items x (0.844 x 0.1) = 0.168

0.855 x 0.1 = 0.086

Hello All

With your help, dear friends

I defined equation for each body in model

after define area :

in Cut-list properties i set Base area for base , side area for side , back area for back and finnally fixture are for fixture

in drawing insert cut-list table i created area Column and all area is set in table

if you have better method please inform me.

I thank you all

Hello all

I work on a weldment file and its drawing. In Cutlist table I create column (Area)

Is there a way to calculate area of each items automatically. For example for item 1 600 x 547

Any help would be greatly appreciated.