Page 1 of 1

CSV file generation

Posted: Mon Dec 07, 2015 7:12 am
by g_meister
Hi sorry not able to post to the other board as I can't get the company email account to work

I am trying to generate a CSV file for instancing using dynamo in revit, however I'm not sure what the 12 number matrix corresponds to. I understand that index 3, 7 and 11 are XZY coordinates, and index 0 , 5 and 10 are XZY scales. as for the other entries i think some of them control normals? How would i generate a sequence to control the rotation of instances?

Thanks
Gerard

Re: CSV file generation

Posted: Mon Dec 07, 2015 9:35 am
by face_off
Pls see https://docs.otoy.com/Standalone_2_0/?page_id=495 for a description of the format of the 12 numbers for each scatter transform.

Paul

Re: CSV file generation

Posted: Tue Dec 08, 2015 7:43 am
by g_meister
Thanks Paul there wasn't a lot of documentation in the plugin manual where i was looking. Anyway the information included in the manual is pretty brief as well as i guess it's expected to be common knowledge. If anyone else needs additional resources on transformation matrices;

http://inside.mines.edu/fs_home/gmurray ... sRotation/
http://graphics.cs.cmu.edu/nsp/course/1 ... nsform.pdf

Cheers

Re: CSV file generation

Posted: Fri Feb 05, 2016 10:53 pm
by ebanta11053
g_meister - I'm also interested in using Dynamo or the Revit API for generating a CSV from from Revit. Is there anything you can share with me? I've been working on it for a few days and am stuck at the point of your last post when it comes to rotation. I've looked through the links you attached but was hoping for something more tangible maybe Dynamo for Revit python code.

Thanks,
Ed

Re: CSV file generation

Posted: Sat Feb 06, 2016 2:20 am
by face_off
g_meister - I'm also interested in using Dynamo or the Revit API for generating a CSV from from Revit. Is there anything you can share with me? I've been working on it for a few days and am stuck at the point of your last post when it comes to rotation. I've looked through the links you attached but was hoping for something more tangible maybe Dynamo for Revit python code.
It will be something like....

[X Scale, 0, 0, X Transform, 0, Y Scale, 0, Y Transform, 0, 0, Z Scale, Z Transform] if there is no rotation.

However if the object is rotated around the Y axis, it will be something like...

[X Scale * cos(y Rot), 0, sin(y Rot), X Transform, 0, Y Scale, 0, Y Transform, -sin(y Rot), 0, Z Scale * cos(y Rot), Z Transform]

In general, X, Y and Z Scale will probably be 1 (for 100%). y Rot is in radians.

Paul

Re: CSV file generation

Posted: Sat Feb 06, 2016 2:35 am
by face_off

Re: CSV file generation

Posted: Thu Mar 03, 2016 6:40 am
by g_meister
Hi its a little late but if anyone needs it here's the dynamo definition that generates a CSV file based on the location of populated family instances in Revit. Once generated the file can be put into Octane plugin and the famile instances are no longer required in the Revit model.

(can't figure out how to attach the .dyn file so here's a link to download it)

https://www.sendspace.com/file/zow37j


hope this helps

Cheers

Re: CSV file generation

Posted: Fri Mar 04, 2016 3:12 am
by face_off
Thanks for sharing this.

Paul