Jump to content

Get Units in Marionette?


Recommended Posts

I am creating a Marionette network that will create an object (trade show graphic) based on input dimensions and then populate a record with pricing ($/sq.ft.) and dimensions in inches and dimensions in millimeters.  When I change the document units things get thrown off.  Is there a way to have the network check the document units so the network can apply the appropriate calculations to get the same output regardless of how the document units are set?  See uploaded image of how this procedure looks in vector script.  Seems like there should be a Get Units node.  Any help is greatly appreciated.

Capture.JPG

Link to comment
  • Marionette Maven

I'm trying to wrap my head around this to find you a solution.

 

1) I assume you always report pricing by sqft?

2) You occasionally have drawings that use other document units and need to *always* convert the pricing to sqft?

 

I think a solution would be a conversion node that takes current document units and allows you to convert a value to a different unit defined in the OIP. Would this be a valid solution for you? (This won't be a quick node to create in full, but should be easy to start if you're only looking to do one or two unit conversions.)

Link to comment

1) Yes the price is calculated on the sq.ft. cost of the particular type of graphic.

2) The document units are typically in mm or feet/in.   The key is for the output data to be the same regardless of document units setting.

 

I don't think I understand this all enough to know if your proposed solution will get me where I need to be.  I think the solution is for the network to look at the document units and if they are set to mm then do one set of calculations and if they are set to feet/in then do another set of calculations.  

 

See the attached results of the script run with different document unit settings.

run with doc units set to feet and inches.JPG

run with doc units set to mm.JPG

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.

Guest
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...