Jump to content

Vectorworks 2022

Recommended Posts

Is there a way to create a script that can calculate weight according to what i input to it. For example lets say I will make a 1 1/4" x 1 1/4" square and extrude it 5' now that just a stick that represent an actual 5' aluminum stick and calculating the weight of it is .6548 Lb/ft  X 5' =3.3LB. I would like the object info pallet to give that info. if possible every time a stretch the stick to make it longer it would automatically change it.If there a direction someone can point me out so can try to do the script on my own , It will be greatly appreciated.

Thank you

Link to comment

You could attach a record with an object's density, and/or, its weight per unit_length. You cannot post the calculation in the OIP without creating a PIO to manage all attributes of volume & density, or length & wt/length, but you can easily (relatively speaking) get those values to display in a Worksheet.


A PIO would be a more elegant solution, and the values could easily display in the OIP, but the amount of programming is many times more complicated.



Edited by MullinRJ
  • Like 1
Link to comment

Applying a Material should allow you to get the Density specified for that Material in a worksheet and then do the calculation there. But it won't show in the OIP.  And I am having a hard time getting the Density of the material into the worksheet. The way it is supposed to be working is not.


The nice thing about using a Material and Density, is that when to go to hollow stock instead of bar stock the weight calculation stays the same and you don't have to update the weight/length for each object.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...