Quantcast
Channel: Product Communities
Viewing all articles
Browse latest Browse all 105279

Forum Post: Re: [2004 VBA] Getting C setting from Create Region Tool

$
0
0

[quote user="Jon Summers"]That raises the question, "Why does the macro recorder record a different struct?"

SetCExpressionValue "regionInfo.interiorShapes", 0, "REGION""Would anyone from Bentley Systems care to comment?[/quote]

It's because that item's hook sets the value of regionInfo.interiorShapes from two different settings.

if (tcb->msToolSettings.areaPattern.interiorShapes && tcb->msToolSettings.areaPattern.regionParity)
    // Find alternating interior shapes...
else if (tcb->msToolSettings.areaPattern.interiorShapes)
    // Find interior shapes...
else
    // Don't find interior shapes...

In order to play nice with the macro recorder, item hooks either need to use an access string or send key-ins.

-B


Viewing all articles
Browse latest Browse all 105279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>