Ive been trying to do this for ages an it was driving me nuts... too many steps with accudraw to go wrong, found a few clues in old posts and filled in the blanks
keyin ROTATE VIEW ELEMENT; %d;%d;ACTIVE ANGLE PT2
( THE ABOVE COULD BE SET TO AN F KY IF YOU USE IT ALOT)
You'll be prompted t select an element ( text or line or shape) to set the view rotation
Then you'll need to Tentatative twice on the reference line element ( the one you want to rotate to) one end first and then the other end last
now you active angle is the angle of the reference line
next we click on the rotate icon and it has the new angle set, so now click on the text or element you want rotated
now key in vi=top to return the view ot original state and our text or line as adopted the angle of the reference element line...
I tried to make another keyin
rotate icon;%d;vi=top
but it works like this select the text to rotate, data point in the view and reset button mouse. then it rotates the text to right angle and sets view back to normal but doesnt
work if you use your mouse buttons in any other order it fails to do what you want cant work out why but works.. other wise the rotate bit can view top can just be done by hand or icons etc
Autocad has all this much easier R for rotate and option is reference so r and two clicks and done...
I wish we had a simple tool or macro with two clicks...
Maybe I don't get the issue right. When want to place any element (text, tag or e.g. a shape) relative to another I use ACCUDRAW "RE".
1. start e.g. "attach tag"
2. select the element you want to tag - insert the values into the dialog - your tag is dangling at the cursor
3. key RE (AccuDraw is active) and click on the element to orient "along" - and the tag is oriented to the element
4. with another datapoint (thats the left mousebutton...for newbies) you place your tag
That's it - just the keyin RE and 2 datapoint clicks
...1a. if AccuDraw is not active - like for text, lines or polygons commands - I like to use the [default] right-left mouse "tentative" click - to an empty spot to activate it... any time ... instead of F11 ...
...3a. If - say for a line - the orientation is flipped I like the old angle dialog (I have created a button with keyin "dialog activeangle") with that you can easily set 180° or any odd angle (AA) for a placement relative to the accuDraw coordinates)
That also works fine in 3D:
(?)I would like to add my dgnlib with the buttons I created, but I seem not to be able find the function any more here to insert a file - only pictures/videos(?)
The line and tag already exist as placed in the file but has to change its alignment some time long after it was placed as things has progressed in the life of the drawing and its no longer correct ... in my case it was part of the title block edge of inner frame and hence aligned with it now I want it to rotated to be in line with a match line that isnt parallel to the edge of the sheet... along the the design line at that point in the the design...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
you wanna share it?
Unknown said:I run the mvba and all of the elements are now rotated to the active angle
can you try adding keyin "ACT AN PT2;%D;%D; " in front of the script to run the vba f key to make it work with one Fkey and 2 data points?
does it work if the view is rotated
Sorry, I've been out. Here is the mvba I have been using. Like I said earlier, I wasn't sure if you got answer to your initial question. I'm not sure where I got it, you may already have it. As far as adding the keyin, I use the mvba for other things but thanks for the handy keyin!
I just uploaded it, I think. It said "uploading 54%" then I saw nothing, pressed reply but can't tell if anything is attached.
no it didnt try making it into a zip and upload that...
I found an public domain old MS-Basic tool that would do the job of rotate text parallel to an element even in a rotated view but it only worked on text element, after some analysis of how it worked I was able to comment out the part that made it work only on Text, now it works on TAG text and most other elements , I have not tried it on every element but it definitely works now on tag text even in rotated view... pity its still in basic, vba would be better for future proofing if any one would like a copy and or would be interested in reworking it to vba I'd be glad to post it here or to your email
I works nicely from F key load macro , then asks to select text then select the reference object to rotate parallel to and accept then reset to exit... boom perfect! works better than angle assistant as that doesnt work on TAG text and is protected so cant edit it to make it work...