I used to have a cell placement tool that when i picked a cell, i could right click and it would rotate 90, then 90 again. I can't figure out how to do this in the button assignments. Does anybody know an easy way to do this? or an easy key in that will allow something like active angle=90+90+90, etc
Cole DeBolt said:Ctrl G is to group objects.
In MicroStation's Application window yes, but not in the VBA IDE.
Do this:
Go to Utilities (menu) / Macro / Visual Basic Editor
When that appears, View (menu) / Immediate Window (or Ctrl+G)
FYI, I'm using V8i SS10 (08.11.09.919) as well, and as you can see, the command works fine.
Can you check you are using the exact command as I did?
Cole DeBolt said:How do I bring up the immediate window?
How to use the Immediate window. Much of MicroStation VBA is shared with other implementations, such as Excel VBA.
Regards, Jon Summers LA Solutions
Cole DeBolt said:That key in doesn’t work at all for me
What do you see in MicroStation's ...
Open the VBA IDE. Type that VBA statement into the Immediate window...
Jon Summers said:vba execute ActiveSettings.Angle = ActiveSettings.Angle + Pi / 4
Now that I am back in the office, I can confirm that copying, pasting and executing the above code into the Key-in window, will increment the Active Angle by 45° in V8i.
I’m off for the next 2 days but can check on Friday.
Cole DeBolt said:Couldn’t get the original one to work in the key in though
I no longer have V8 installed so I can't test the key-in with that version of MicroStation. Perhaps Barry Lothian can try it — I believe that he's using V8.
Alternatively, consult the V8 VBA help doc to find the correct syntax. Search for MicroStation VBA Key-ins, and scroll to see To execute a VBA statement with a key-in.