Author Topic: Read max number in one attribute and put in another attribute  (Read 1155 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1423
Read max number in one attribute and put in another attribute
« on: September 25, 2014, 05:46:43 AM »
Related to this post http://www.theswamp.org/index.php?topic=47901.0
I am wondering if there is a way to link between these 2 blocks to read max number in one attribute and put in another attribute.

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Read max number in one attribute and put in another attribute
« Reply #1 on: September 25, 2014, 12:54:44 PM »
In order to determine the maximum of a set, a conditional or sorting operation would be required. DIESEL supports conditionals, however cannot accept nested fields; Formula Fields accept nested fields, but do not support conditionals or sorting.

One possible solution might be to use a Field which references a global AutoLISP variable which is assigned the latest revision; the variable would need to be defined on startup & also following modification to the attributes in question (which would likely require reactors...) - although potentially feasible, this is a messy solution.