PointPicker and history script/API questions
All  1-7  8-10

Previous
Next
 From:  Larry Fahnoe (FAHNOE)
10917.8 In reply to 10917.7 
With continued development of this script the unexpected undo behavior went away, though I'm still not clear on its cause nor just what cleared it up. A minor mystery, most likely due to a lack of understanding on my part.

--Larry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10917.9 In reply to 10917.8 
Hi Larry,

re:
> A minor mystery, most likely due to a lack of understanding on my part.

I think there's a bug somewhere in the automatic undo generation system when some intermediate objects are both created and deleted within the same command.

If you run into it again you might try using factory.calculate() instead of factory.commit(), like:

var object_list_result = factory.calculate();

The difference is that factory.calculate() creates "loose objects", meaning the objects have not been added into the geometry database automatically. If you're then using that geometry for internal construction and it's not supposed to be shown by itself to the user you don't need to have it added into the geometry database.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Larry Fahnoe (FAHNOE)
10917.10 In reply to 10917.9 
Thanks Michael, will keep that in mind.

--Larry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-7  8-10