Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

No way to schedule the rotation of a MV Block insertion?

Anonymous

No way to schedule the rotation of a MV Block insertion?

Anonymous
Not applicable

I was looking to schedule the insert location and rotation of a MV Block, It has a location properties for x,y,z and rotation in the palette but that is not seen in the available MV Block properties when creating a property set. Have tried the Block and MInsert rotation properties (both have them) but they do not report the MV Block. 

Only workaround is to explode to blocks, but the plan block does not have the same name as the MV Block so that breaks another part of a process!

Anyone else tried this, found another answer?

2019-09-10_14-00-51.png

0 Likes
Reply
Accepted solutions (1)
1,136 Views
7 Replies
Replies (7)

David_W_Koch
Mentor
Mentor
Accepted solution

Seems like an oversight, to me; rotation should definitely have been an Automatic Property for Multi-View Block References.  I doubt they will add it now.  Fortunately, you can use a formula property to grab the value from the object's data.  In the example below, I converted the raw value, in radians, to degrees, because I have never been able to wrap my head around radians, particularly when expressed in decimal format.  If radians suit your use, you could leave out the first line (where pi is defined, to an unreasonable number of decimal places) and then drop multiplying the value obtained from the object by 180 and dividing by pi.

pi = 3.141592653589793238462643383
Set acadApp = GetObject(,"AutoCAD.Application")
Set mvbObj   = acadApp.ActiveDocument.ObjectIDToObject( [ObjectID] )
RESULT = CDbl(mvbObj.Rotation * 180.0 / pi)

You will need to include an instance of the ObjectID automatic property in your Property Set Definition, and make [ObjectID] a reference to that property.  I have also attached a sample file with the above in use; pardon the imperial units (which have no impact on the Rotation property).  The file is in AutoCAD 2018 file format.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Anonymous
Not applicable

Awesome and thank you!

 

I suppose not having needed this, using the app since 2001'ish, indicates it is rather niche!

0 Likes

David_W_Koch
Mentor
Mentor

Found an alternate way to calculate pi, in an old blog post of mine that did not come through in my earlier searches.  You may prefer this:

pi = 4 * Atn( 1.0 )

David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Anonymous
Not applicable
0 Likes

Garga
Contributor
Contributor

hi david,

the answer is little bit old but I have similar problem.

in Autocad Architecture I have

room name,

room number

and room size in one mv block.

when I rotate layout 180°  room name, number and size is no more horzintal, stays on head. Is there a way to solve this? I want, mv block should stay horizontal if I rotate the Layout.MVBlockproblem.png

0 Likes

jtm2020hyo
Collaborator
Collaborator

How everyone have the "Rotate" option for MV-Block?

 

here my version:

 

jtm2020hyo_0-1639843221655.png

 

here your file Mr.@David_W_Koch 

jtm2020hyo_1-1639843250349.png

 

0 Likes

David_W_Koch
Mentor
Mentor

@jtm2020hyo 

Looks like you opened my file, selected one of the chairs and changed it to a Room Tag Multi-View Block.  That tag is not anchored to a Space.  I suspect that in your file, the Room Tag Multi-View Block is anchored to a Space.  That is the difference. 

 

ACA treats the unanchored tag as an ordinary Multi-View Block, and will show a rotation property on the Design tab of the Properties palette.  A tag-anchored Multi-View Block (constrained or unconstrained) will not show a rotation property directly on the Design tab, presumably on assumption that you will want an annotative tag to be "right reading" and not rotated at some odd angle (unless, of course, you constrain the tag to the object and opt to also constrain the rotation of the tag to the object).

 

You can rotate an anchored tag, if you want - just select the Anchor worksheet under BASIC > Location on entity and enter the desired value in the Angle edit box in the Rotation area at the middle-right of the Location dialog.  A little more difficult to get to, but I believe that is by design.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature