Matrix = Matrix4x4(v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v)Įuler = euler_from_quaternion(rotation.X, rotation.Y, rotation.Z, rotation.W) Return roll_x, pitch_y, yaw_z # in radians The custom python script extracts the block instance rotation in degrees from its 4x4 transformation matrix: import sys First retrieve the transform matrices form the block instances, and then extract the rotation angles in degrees from the 4x4 matrices using a python script. Speckle block instances also include a transform matrix that contains the information for the instance translation and rotation. Using the insertion points from the previous block, place your family instances by point and level.Įxtract block rotation angle from the instance transform matrices Then select the loaded family you want to use to generate instances, as well as the level to place them on. Place Revit families using the block instance insertion pointsĮach block instance includes an insertion point, which can be retrieved by running the code block below: Open Dynamo in Revit, and receive the blocks you just sent with a Dynamo Receive node. With Speckle installed for both AutoCAD and Dynamo, send your blocks to a Speckle stream.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |