ericjhberg Posted November 21, 2018 Share Posted November 21, 2018 I am trying to write a marionette script that will place a selected titleblock border style on a selection/all of the sheet layers in a file. Is this possible? Struggling to figure it out. I have already created a script that can create all of the sheet layers I may need for a project automatically, but now I am trying to figure out the next steps to make sheet setup easier and faster. Some of the other help items I need are: A node to adjust the sheet size of selected/all sheet layers...preferably from a dropdown list of available sizes? Eventually...how to place viewports on all of the sheets, given crop objects. I'm currently studying the Automated Layout post by @DomC which is what triggered this whole light bulb in the first place. I am just thinking about all of the other objects I could add to make this more powerful How to manage viewport rotation to adjust to the page? How to place Drawing Labels in the Viewport Annotations of the viewports placed above in specific locations relative to the viewport crop? How to place scale bars in the viewport annotations in specific locations relative to the viewport crop/drawing label? How to place North Arrow symbols in the viewport annotations relative to the drawing label/scale bar and that adjust for the rotation of the viewport? How to Control the Visibilities of the Viewport (both classes and layers) by referencing Saved Views visibility states? There are tremendous opportunities here to automate a very time consuming task when there are 10s of 100s of sheet layers and viewports. Excited and hoping someone is willing to provide some assistance. Thanks. Quote Link to comment
Marionette Maven Marissa Farrell Posted November 21, 2018 Marionette Maven Share Posted November 21, 2018 @ericjhberg I'm attaching a file that contains two custom nodes: Layer List - Returns all layers in the active document Set Sheet Size - sets the sheet size for the given layer At least this will get you a little further in your endeavors 🙂 I think viewports will be a little trickier, but since it's a challenge, I'll end up looking into it at some point. SetSheetSize_MFarrell.vwx 1 Quote Link to comment
ericjhberg Posted November 21, 2018 Author Share Posted November 21, 2018 This is amazing! Thank you so much @Marissa Farrell! Another quick question...how do you control the order of named inputs in a wrapped node? Mine appear in a random order and I would like them to be a little more organized? Regarding the viewports, I think @DomC has a node to "Create Viewport Top Plan" that I plan on using as a basis. Quote Link to comment
Marionette Maven Marissa Farrell Posted November 21, 2018 Marionette Maven Share Posted November 21, 2018 I can't attest to this not being buggy - but if you prefix your names for nodes numerically, such as 1Width, 2Height, they should order respectively without displaying the number. This is not a VW recommended workflow, but I know in many cases it has been used with success. As for VP creation, yes, there is a way to create a Top/Plan VP, but from there you may have to make your changes manually. I haven't yet found a way to create a VP of a specific view, though I've spoken with some relevant engineers on the possibility. Quote Link to comment
ericjhberg Posted November 21, 2018 Author Share Posted November 21, 2018 That worked...thanks again! I think for the viewport creation, I will be basing it off of rectangles drawn in a design layer that will be used as the crop objects of the viewport, but haven't quite started down this road. It appears @DomC uses a self-made plug-in object to build his viewports, so I think rectangles should work just fine. The only thing I was wondering about for saved views was possibly using a node to cull the visibility settings saved in a saved view (i.e. classes and layer visibilities) and then applying them to certain viewports. This would be a workaround for collectively managing viewport visibilities with a script instead of through the viewport organization or using the Match Properties tool. I have been lobbying for Viewport Styles as a way to do this in the future, but for now, thought that marionette might offer a workaround? Is there a way to place a Titleblock Border with a selected style on different sheet layers? Quote Link to comment
Marionette Maven Marissa Farrell Posted November 21, 2018 Marionette Maven Share Posted November 21, 2018 Yep! I just answered this over here (still a work in progress): 1 Quote Link to comment
ericjhberg Posted November 21, 2018 Author Share Posted November 21, 2018 It works though...very nice. I combined another of @DomC nodes for creating a pop-up from a symbol folder to input the string for the titleblock, but the base works perfectly. Getting close! Thanks again for all of your help! 1 Quote Link to comment
rowbear97 Posted November 28, 2018 Share Posted November 28, 2018 @ericjhberg You are crazy! This is way beyond me. I'm too old school. I set up my viewport, even it a project needs multiple viewports to cover a site, and get every just as I want it and then make duplicates to create grading or planting etc... When will you have this done so I can join you in the 21st Century? Quote Link to comment
ericjhberg Posted November 29, 2018 Author Share Posted November 29, 2018 @rowbear97 Yeah, this is what we have been doing for years, but this whole marionette example that @DomC is utilizing got my wheels turning...maybe there's a better, faster way to do this. Haven't got there quite yet, but have a good start on the sheet set creation network. I will keep you updated as I progress. 1 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.