01-22-2010 08:21 AM
Does anyone know of a way to set which frame of a disabled diagram structure is the enabled frame using scripting?
01-22-2010 08:25 AM
I have not tried it, but there is an ActiveFrame property which should do the job.
Note that the diagram disable structure normally switches on environment variables. Approach with caution.
01-22-2010 08:26 AM
Thank you! That works. I tried this before posting the questing and it didn't seem to work but it does...DOH!
01-22-2010 08:27 AM
You can simplly use Case structure..!!
01-22-2010 08:48 AM
I'd like to use nested disable diagram structures instead of a case structure such that certain code doesn't compile. I've run into a new problem and I'll ask here while I'm searching, but does anyone know a way to get a reference to a disable diagram structure within a disable diagram structure? The BD.Nodes property doesn't recursively return nodes within nodes.
01-22-2010 08:58 AM
You have two options.
01-22-2010 09:13 AM
Thanks DFGray, but I did it a different way. I cast the disable diagram reference to a structure reference and then used the Diagrams[] property and then searched the Nodes[] property of that for a disable diagram structure.
01-22-2010 09:41 AM
sgregor249 wrote:
I'd like to use nested disable diagram structures instead of a case structure such that certain code doesn't compile.
Couldn't you simply use Conditional Disable Structure and define disable symbols within the project? That is exactly what it is for...
01-22-2010 09:46 AM
Conditional disable only operates on a logical combination of platform / processor bitness (32 vs 64) / envorinment (dev/executable/etc.). If i want certain code to not compile based on other conditions I can use nested disable diagram structures or the call by reference node.
01-22-2010 09:53 AM
sgregor249 wrote:
Conditional disable only operates on a logical combination of platform / processor bitness (32 vs 64) / envorinment (dev/executable/etc.). If i want certain code to not compile based on other conditions I can use nested disable diagram structures or the call by reference node.
No, you can create any symbol (variable) and assign it any integer value. Yo can do it with Project->Properties->Conditional Disable Symbols. Then for each frame of Conditional Disable Structure you can define an expression using these symbols.