News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Subtle GUARD Behavior

Started by vojo, June 30, 2020, 12:41:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vojo

So I do all kinds of crazy shapes.   In one of my shapes, I was debugging why, when I make a copy, it places the new shape 1000 light years away in the andromeda galaxy.

It turns that there is subtle behavior of GUARD

if Pinx = sheet.1000!pinx + 10mm....that shape can end up in Andromeda
    not consistant in same location when done several times
    (copy, exit, don't save changes, open, copy, exit don't save changes,etc)

if Pinx = guard(sheet.1000!pinx + 10mm)....copy is as predicted.

it appears that guard tells visio automation to use the formula defined....no guard, visio automation loses its mind

I went thru, found the missing guard...fixed it...verified with testcase above.

So guard appears to do more than just isolate function from user interface activities

just a heads up.ion

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 129 (show)
Files included: 32 - 1207KB. (show)
Memory used: 992KB.
Tokens: post-login.
Cache hits: 12: 0.00109s for 26,766 bytes (show)
Cache misses: 1: (show)
Queries used: 15.

[Show Queries]