Jump to content

Custom Data Tag with dynamic field(wattage to current)


Recommended Posts

Hi guys,

 

I was trying to use a custom record format field(wattage) and do a simple math operation to get the current to appear in a data tag.

 

#Power Requirement#.#Wattage#/230

This works and i end up with lots of decimal space.
I am able to get #WS_ROUNDUP(numerical_value,0) working if i put a number.
Anyone can point me how to put the math operation in?

Link to comment
  • Vectorworks, Inc Employee
Just now, Juay said:

I notice that it is 'Power Requirement'.'Wattage' instead of #Power Requirement#.#Wattage#.
May I know whats the rule for this syntax?

- Yes. The data tag syntax is the one with the #. However, everything inside #WS_<here># is using the worksheet syntax. So what you put in there should work exactly the same if you put it in a database worksheet.

  • Like 2
Link to comment
11 hours ago, Nikolay Zhelyazkov said:

- Yes. The data tag syntax is the one with the #. However, everything inside #WS_<here># is using the worksheet syntax. So what you put in there should work exactly the same if you put it in a database worksheet.

Hi Nikolay,

 

Thanks for the help and explanation

😁

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