Martin Crawford Posted January 6, 2018 Share Posted January 6, 2018 I am working on my first Marionette network to renumber an record attached to a symbol. The network works somewhat correctly. I have two issues that I can't seem to figure out. The first is I have to subtract 2 from the start sequence to get the starting correct. My guess is I don't really need to subtract 2 to get things working and this is a band-aid. Second, is the number are not always connective. On my computer when I run the attached script , the last few symbols have the incorrect numbers. Depending on the file I run this on, I get different results. When I was creating the network, instead of running from a menu, I set the selection to s='Prime - 2.4N' (the name of the symbol) and everything worked correctly. I thought I could simply change the selection to sel = true, convert to a menu and all would be good. One thought I had was adding a node to filter any items I selected that are not symbols, however I was unable to figure out how to do that. Is there a way to select, then filter only symbols, or better only symbols that have a record attached with ID as a field? (I'm not sure this is really required, as I'm not sure the root issue with the network). Not every node is used in this script, however it will grow to accomodate different numbering methods. Left-Right, Top-Bottom, Right-Left, Top-Bottom, etc. That is why I have the mul nodes on the XY values.. Thanks Autonumber_ID.vwx Quote Link to comment
AlanW Posted January 6, 2018 Share Posted January 6, 2018 @Martin CrawfordHi, If i set your criteria to be "sel=false" i can get it all to change. Quote Link to comment
Martin Crawford Posted January 6, 2018 Author Share Posted January 6, 2018 Thanks I fixed a number of issue and have it working. I would like to figure out a better way to filter so I only get symbols in the selection. Any thoughts? Martin Autonumber_ID.vwx Quote Link to comment
AlanW Posted January 6, 2018 Share Posted January 6, 2018 @Martin CrawfordHi, the minus 1 was what I also did before the sequence. Not sure how its working for you but when i run the original file no numbers change in the symbols. If i change to false i get all to change. ????? Quote Link to comment
Martin Crawford Posted January 6, 2018 Author Share Posted January 6, 2018 The network is meant to run as a menu command, so I could select a section of the panels and auto-number. Sorry, I forgot that detail. What I would like is to not limit the selection to just the one symbol. Thanks Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted January 8, 2018 Vectorworks, Inc Employee Share Posted January 8, 2018 Hello Martin, To answer your question about filtering - you can filter by object type. You can find a list of Vectorworks object types here: http://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix#objects I have added a section that filters by object type to your network. I find this little network to be very useful - changing the value of the integer changes the object type you are looking for, but you can also change the Get Type node to another Get Object Info node that gives you a number value and the Integer node to the appropriate value you want to match it to. Autonumber_ID_sb.vwx Quote Link to comment
Martin Crawford Posted January 8, 2018 Author Share Posted January 8, 2018 Thanks! This is now working very nicely! Martin 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.