Dexie Posted December 22, 2016 Share Posted December 22, 2016 I originally posted this in the Wish List but having watched the first Marionette tutorial this seems like an ideal project for marionette. What I would like to achieve is outlined below. Have you ever just finished a housing layout with say 300 houses plotted and numbered from Plot 1 to Plot 300 and the client comes back with can we turn Plot 6 into a pair of semi-detached houses. That means renumbering from Plot 6 onward. Even with the number stamp this is tedious. I would really like to select a polyline type tool that inserts a number at every click (with a prefix & trailer) so that if I insert another point (eg. between Plot 6 & Plot 7) it will shift all subsequent numbers on one digit. Even better if it could be used to number on plot parking spaces (as different house have more or less spaces) and by holding down a modifier key you could insert 3 or 4 instances of the same number. But where to start? Any tips would be appreciated. Quote Link to comment
Marionette Maven Marissa Farrell Posted December 22, 2016 Marionette Maven Share Posted December 22, 2016 Your first task of renumbering a housing layout could actually be quite simple. I'm attaching a simple script to show how you can number the vertices of polylines. Currently, this network will select a poly by name and create text objects referring to the number of the vertex for each vertex on the poly. This network could easily be updated to use control geometry and become a Marionette Object which can be reshaped just like a regular polyline so that you may add, remove, or change the location of the vertices on the poly while automatically updating the numbering. It's easy to update this script to suit your needs with formatting, etc. Your second task would be slightly more complicated for Marionette. I'm sure that with some thinking a process may be possible, but Marionette works differently than using a regular tool would. NumberPolyVertices_MFarrell_2016.vwx NumberPolyVertices_MFarrell_2017.vwx 1 Quote Link to comment
Dexie Posted December 22, 2016 Author Share Posted December 22, 2016 Thank you very much. I will have a look at this over the Christmas Holidays. Merry Christmas Quote Link to comment
RickR Posted December 26, 2016 Share Posted December 26, 2016 I have often used non Marionette methods. Spotlight has numbering features, but attaching symbol text to a record let's you renumber in a worksheet. Copy & paste! Quote Link to comment
Dexie Posted January 3, 2017 Author Share Posted January 3, 2017 Marissa Could you point me in the right direction for inserting a Prefix before the number. Quote Link to comment
Marionette Maven Marissa Farrell Posted January 3, 2017 Marionette Maven Share Posted January 3, 2017 Of course! Right click on the object and select 'Edit Script' With the Marionette tool active, navigate to Defaults > Marionette > Marionette Default Library > Input and select the 'String' node (At this point, sometimes the script editing window will close. If this happens, just right click and 'Edit Script' again.) Place the 'String' node in the same place as the below image and wire it to the prefix port of the 'Text' node, you can change the prefix in the OIP with the 'String' node selected. If you want to be able to access the Prefix from the object itself outside of editing, write something in the Name field on the OIP with the 'String' node selected. Quote Link to comment
Dexie Posted January 3, 2017 Author Share Posted January 3, 2017 Thank you very much. I figure out where to attach the node but couldn't find the correct node to attach, there are so many. Thanks again. Quote Link to comment
Marionette Maven Marissa Farrell Posted January 3, 2017 Marionette Maven Share Posted January 3, 2017 You can search for the node using the search bar in the popup list from the tool, if that helps. 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.