Jump to content
Developer Wiki and Function Reference Links Read more... ×
Dexie

Number nodes along polyline

Recommended Posts

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.

Share this post


Link to post

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

Share this post


Link to post

Thank you very much. I will have a look at this over the Christmas Holidays.

Merry Christmas

Share this post


Link to post

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!

Share this post


Link to post

Marissa

Could you point me in the right direction for inserting a Prefix before the number.

Share this post


Link to post

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.)

MarionetteStringLocation.PNG

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.

 

polynumbering.PNG

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×