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
When pasting in the Immediate Window, you don't need the VBA Execute part
only this:
ActiveSettings.Angle = ActiveSettings.Angle + Pi / 2
When you paste in the Key-in, you use this:
vba execute ActiveSettings.Angle = ActiveSettings.Angle + Pi / 2
Answer Verified By: Cole DeBolt
Cole DeBolt said: How do I run it from the immediate window?
The Immediate window is part of the VBA IDE. You can type a VBA statement and see the immediate result. For example, try this in either MicroStation VBA or Excel VBA...
? "My name is Cole"
The Immediate window is part of VBA, and doesn't understand a MicroStation command such as VBA Execute . Barry Lothian and I have both provided screenshots of the Immediate window.
Cole DeBolt said:I don’t get why it won’t work in the key in window
The key-in window is a MicroStation window. MicroStation doesn't understand VBA statements unless prefixed VBA Execute. MicroStation VBA help documents the available key-ins. I gave you a hint about that earlier in this thread.
VBA Execute
vba execute VBA statement
vba run macro-name
Regards, Jon Summers LA Solutions