CSV file generation

Forums: CSV file generation
Area for student license holders to post questions and discuss octane.

CSV file generation

Postby g_meister » Mon Dec 07, 2015 7:12 am

g_meister Mon Dec 07, 2015 7:12 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 345 times
g_meister
 
Posts: 3
Joined: Thu Sep 10, 2015 1:36 am

Re: CSV file generation

Postby face_off » Mon Dec 07, 2015 9:35 am

face_off Mon Dec 07, 2015 9:35 am
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, DAZ Studio
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 14226
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: CSV file generation

Postby g_meister » Tue Dec 08, 2015 7:43 am

g_meister Tue Dec 08, 2015 7:43 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/ArbitraryAxisRotation/
http://graphics.cs.cmu.edu/nsp/course/15-462/Spring04/slides/04-transform.pdf

Cheers
g_meister
 
Posts: 3
Joined: Thu Sep 10, 2015 1:36 am

Re: CSV file generation

Postby ebanta11053 » Fri Feb 05, 2016 10:53 pm

ebanta11053 Fri Feb 05, 2016 10:53 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
ebanta11053
Licensed Customer
Licensed Customer
 
Posts: 28
Joined: Tue Aug 21, 2012 12:58 pm

Re: CSV file generation

Postby face_off » Sat Feb 06, 2016 2:20 am

face_off Sat Feb 06, 2016 2:20 am
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, DAZ Studio
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 14226
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: CSV file generation

Postby face_off » Sat Feb 06, 2016 2:35 am

face_off Sat Feb 06, 2016 2:35 am
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke, DAZ Studio
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 14226
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: CSV file generation

Postby g_meister » Thu Mar 03, 2016 6:40 am

g_meister Thu Mar 03, 2016 6:40 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
g_meister
 
Posts: 3
Joined: Thu Sep 10, 2015 1:36 am

Re: CSV file generation

Postby face_off » Fri Mar 04, 2016 3:12 am

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

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke, DAZ Studio
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 14226
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Return to General Discussion


Who is online

Users browsing this forum: No registered users and 1 guest

Wed Oct 21, 2020 2:13 am [ UTC ]