ugh. the good news is that I can write some clever xpath that makes this SVG-manipulation trivial
the bad news is that I'm having to use ElementTree, which has "limited support for XPath expressions", so NOPE! my xpath won't work
ugh. the good news is that I can write some clever xpath that makes this SVG-manipulation trivial
the bad news is that I'm having to use ElementTree, which has "limited support for XPath expressions", so NOPE! my xpath won't work
well I can do it one way, which crashes, and another way, which silently does nothing.
quality software and/or documentation
ahh, I figured out it was generating the wrong kind of operation. so I switched it to the correct operation!
and it still crashes
good news!
it didn't crash.
it instead hung.
fusion360 is the king of code that looks like it contains obvious typos but doesn't:
op.parameters.itemByName('tool_coolant').value.value = "'disabled'"
even better, it turns out this code DOES contain a bug!
despite the saved templates storing the value as "'disabled'" (that's double-quote-single-quote-disabled-single-quote-doublequote) and the list of values clearly saying single-quote-disabled-single-quote, and you assigning a value, not a name... it wants no single quotes.
the name would be Disabled, btw, but apparently the correct value is disabled, no quotes.
markdown for inline code blocks?