Jump to content

Hello Community!

This Saturday, May 30, from 9am – 12pm EDT we will be performing maintenance on the Vectorworks Community Board. During this time, the site will be unavailable.


Get area in square feet independent of document units

Recommended Posts

I am trying to calculate the area of a 2D polygon in square feet, independent of whatever the document units are. The "area" node only returns a value in the document units. Is there a way to specify the units independent of the document settings?

Share this post

Link to post



the function vs.GetUnits() returns a variable that tells how many units are one inch:


fraction, display, format, upi, name, squareName = vs.GetUnits()


You can create a node that returns this value. The rest should be straight forward.




Share this post

Link to post

You don't have to create a new node from nothing.

I simply hijacked the any-node. 

class Params(metaclass = Marionette.OrderedClass):
	this = Marionette.Node( 'UnitsPerInch' )
	v = Marionette.PortOut()
	v.SetDescription('The resulting value')

def RunNode(self):
	fraction, display, format, upi, name, squareName = vs.GetUnits() 
	self.Params.v.value = upi



  • Like 1

Share this post

Link to post

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.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...