Finding bad formulas



I would like to make a tool that would alert SketchUp authors to the fact that some of their formulas are bad (red).

How can I detect these in the API or in dynamic_attributes?


To answer my own question. Basically I look at every key/value in the attribute_dictionaries for the model and I do this test:

	if /_error$/.match(key) and /subformula-error/.match(value)
		keyname = /_(.*)_error$/.match(key)[1]
		error = "ERROR in #{entity_name}!#{keyname}. Please investigate."


This topic was automatically closed after 91 days. New replies are no longer allowed.