CSV file generation

Area for student license holders to post questions and discuss octane.
Post Reply
g_meister
Posts: 3
Joined: Thu Sep 10, 2015 1:36 am

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
Attachments
Populate to CSV.png
Scatter.csv
(1.44 KiB) Downloaded 624 times
User avatar
face_off
Octane Plugin Developer
Posts: 15700
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

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
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
g_meister
Posts: 3
Joined: Thu Sep 10, 2015 1:36 am

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
ebanta11053
Licensed Customer
Posts: 28
Joined: Tue Aug 21, 2012 12:58 pm

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
User avatar
face_off
Octane Plugin Developer
Posts: 15700
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

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
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Posts: 15700
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
g_meister
Posts: 3
Joined: Thu Sep 10, 2015 1:36 am

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
User avatar
face_off
Octane Plugin Developer
Posts: 15700
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Thanks for sharing this.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
Post Reply

Return to “General Discussion”