Michael Knoepfle Posted October 30, 2015 Share Posted October 30, 2015 Hello there, I'm new with marionette. Can someone show me how to create a list from a database. The note "Get Record Field" is always only the first value. Thank you Quote Link to comment
DomC Posted October 31, 2015 Share Posted October 31, 2015 Hallo Michael You can just input more than one object or more than one Field Names. This works good, if you know the field names respectively if you always have the same kind of record format. If you want to have the field names dynamically (another record with other field names) You need another construct (or node) which generates the field names automatically. Dom Quote Link to comment
DomC Posted October 31, 2015 Share Posted October 31, 2015 (edited) Check this out: A Quick-Modification of the "Get Record Field-Node", which returns a list of Field Names instead the Field Values. So you are able to automatically feed your Field Names. I hope this was not already part of the native nodes content. Dom Edited October 31, 2015 by DomC Quote Link to comment
DomC Posted November 1, 2015 Share Posted November 1, 2015 (edited) If we play around with Record Formats and Lists. It can be useful to access external Lists of Data. I Attached a node, which bases on the python csv standard module. It can import lists as strings (text) or as numbers. It can't mix numbers and strings. Except Header (first Line) can be strings during the rest of the lists are numbers. It could be used for: 1. Import csv (or tab) separated text files by using an absolute path. 2. Import a csv with the same path and name of the Vectorworks file (for Metadata/Project data like Title Blocks etc.) 3. It puts out rows and lines separately. The used path and rows- and line quantity. v03: Popup with Text encoding List. Python Standard is 'utf-8' Edited November 1, 2015 by DomC Quote Link to comment
Patrick Winkler Posted November 2, 2015 Share Posted November 2, 2015 Hi Domi, how do you show up that dialog with the output values? thanks Quote Link to comment
DomC Posted November 2, 2015 Share Posted November 2, 2015 (edited) Output values are visible, when you click with the second method of the marionette tool on a wire (the "debug" methode). If there is no wire, connect a "Dummy End", which can be found under de "Debug" symbol popup. Edited November 2, 2015 by DomC Quote Link to comment
Michael Knoepfle Posted November 3, 2015 Author Share Posted November 3, 2015 Hello DomC Your answers were very helpful. All my problems with Marionette are fixed. I hope I can now soon to introduce my first program here . Mike Quote Link to comment
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.