lastknownuser Posted November 17, 2022 Posted November 17, 2022 Maybe stupid question but its hard for me to find answer, I'm trying to find a way how to connect block rotation parametar and rotation of the block itself. I attached simple north label for example. When I insert block rotation is set to 0. When I rotate it by the grip or write in "Angle" field, block rotates but in properties Misc, Rotation is still 0. And if I write in Rotation field it rotates but "Angle" filed stays the same. How can I connect these two things? To be more clear, when I write in "Angle" field 90, I want property Misc Rotation to be set to 90 also. Currently it stays 0, and if I put 90 there, the whole block is 180 upsidedown. dyn_block_test.dwg Quote
CyberAngel Posted November 17, 2022 Posted November 17, 2022 The dynamic properties of dynamic blocks aren't normally accessible, but they're there. I made a block that I can rotate to a specific angle. When I use Select Similar with one of those blocks, I don't get any matches unless they're at exactly the same angle, so usually it's zero matches. To test my theory, I just inserted four of those blocks in a row, all with 0 rotation. I can select one and get the other three with Select Similar, but none of the dozens of others in the drawing. Their angles show up in their Properties. I used a Polar Stretch action, if that helps. Quote
BIGAL Posted November 18, 2022 Posted November 18, 2022 Just a comment "I attached simple north label for example." As the name implies rotate a block to match the twist angle in a viewport for all layouts. " Rotate Nth arrow in layout" happy to discuss further. Quote
j2lstaples Posted November 22, 2022 Posted November 22, 2022 Technically, the rotation of the block is associated with the block itself and not the Dynamic Property called Angle. We assume that every block is inserted at 0-degree rotation initially and then the dynamic property called Angle manipulated the orientation of the block itself with regards to its initial rotation or current rotation. It is not recommended to have duplicate properties, one inherent to the block and another as a dynamic block property. It's not helpful. The Rotation is group code 50 of the entity itself while the dyn prop can be recovered using Lee-Mac's dynpropvalue functions in AutoLISP. You don't usually constrain the local inherent rotation (Angle) of the block to that of the WCS. 1 Quote
CadAuto Posted January 2, 2023 Posted January 2, 2023 To connect the block rotation parameter and the rotation of the block itself in AutoCAD, you will need to use a dynamic block. Here's how to set it up: Create a new block or open an existing block in AutoCAD Go to the "Block Editor" by either double-clicking the block or selecting it and clicking the "Edit Block" button on the "Block" panel of the "Home" tab In the "Block Editor," go to the "Properties" palette and click the "Add Property" button In the "Add Property" dialogue box, enter "Angle" as the property name and select "Angle" as the property type. Click "OK" to add the property Select the block geometry that you want to rotate and go to the "Geometry" tab of the "Properties" palette In the "Rotation" field, enter an expression using the "Angle" property you just created. For example, enter "Angle" (without quotes) to link the block's rotation to the "Angle" property Click "OK" to close the "Block Editor" and save the changes to the block Now, when you insert the block into a drawing and change the value of the "Angle" property, the block will rotate accordingly. I hope this helps! Let me know if you have any questions. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.