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 (possibly_robot)
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: 988KB.
Tokens: post-login.
Cache hits: 13: 0.00183s for 26,740 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]