Good morning. Lots of activity while I was asleep. Thank you.
Thanks Brian, for your help. I do examine the command files and even looked into EditOrientations.js but like you didn't understand. Fortunately in my case the script can stay simple without the need for a list. I like simple and compared to your scripts mine are humble :-)
Thanks Michael, of course it must be .commit()! I used it a hundred times before but that comes from typing from memory.
What I don't understand is the difference between factory.update() and factory.calculate().
Is the following correct?
factory.commit() calculates the result and puts it into the scene (geometryDatabase).
factory.update() just calculates the result and (with the exception of asynchronous factories like sweep or boolean) it can be assigned to a variable using factory.getCreatedObjects();
factory.calculate() also just calculates the result and it can be directly assigned to a variable.
Why can't I just write var x = factory.commit();?
Why is there an .update() and a .calculate() method when it looks like they do the same?
I hope it's not too complicated to explain.
|