I just put out the first public release of DraftHorse on food4rhino.
It’s a plugin I’ve been working on for a while as a replacement for Fabtools’ layout creation components. It build on the originals by adding some of the capabilities of Rhino 7, using Layout User Text and Document User Text in combination with Block Text to make Title Blocks more parametrically controllable.
I’m calling it a Beta because it hasn’t gotten much testing out in the wild, but the code is also available on Github if you want to dig in or even contribute to the project.
Please give it a try and let me know how it works for you!
First of all, thank you very much for sharing this tool, because I really missed the version which was saved me a lot of time before. I tested it quickly this evening, and when generating the pdf, the saved document appears as marked in the attached image every time.
Thanks @zsolt.gutleber - this is probably a bug related to my lack of testing in SI units - At first glance, it looks like it’s using the millimeters as some other unit - any chance it’s exactly 25.4x in both directions? I’ll dig in to this tonight
@lander I totally agree - title blocks are not at all intuitive, and neither is the Block Text that is supposed to make them easier. I took the approach of making the Block text dependent on a combination of Document and Layout User Text fields. Document User text for fields that should be the same across layouts, and Layout User text for ones that should be Layout/Drawing specific.
Please check out the DH_DocumentAndLayoutText_Example in the example files - it includes a 3dm and gh, with an example Titleblock showing how I’ve used it.
v0.4.0 is out! - a few bug fixes, but most significant update was to components that make & modify Details.
Detail components now take a box instead of a point as a target - this lets the Perspective view function better (default Perspective will zoom to the box).
Detail components additionally take a “View” input (using the view generation tools from Make2D) - this means details can now use Named views as well as custom parallel and perspective views (see the Make2D Parallel and Perspective components).
Layout by Bounds also has been updated so that the view will conform to the plane of the rectangle or bounding box input (previously, it always used World XY). Here’s an example where an oriented detail is generated for each face of a dodecahedron. This should make it easier to produce custom views for complex objects & assemblies.
Thank you (again) @zsolt.gutleber - I did, in fact, fix this in 0.3.1… and then proceeded to release 0.4.0 off of a separate development branch before merging back to main. Ugh. still learning. So it should be fixed now with 0.4.1. thanks for your patience!
Hi @michaelvollrath - I haven’t released a build targeted at Rhino 8. When I just tried it, I got an error related to getting the Make2dviewParameter from CurveComponents - that was the code I recently implemented to drive details by “view”. Looks like this got changed in Rhino 8 with the implementation of Grasshopper.Rhinoceros objects, so I’ll have to do a bit of re-factoring to get it working. I’ll put it at the top of my list!
@michaelvollrath I’ve pushed a beta version that works on Rhino 8 (v0.0.2-beta). I’m still working out some bugs. Notably, the buttons on most of the components aren’t showing up. However, I have started updating the inputs from the “Layout Index” method to the GH native type available in Rhino 8. The new “Query Pages” component in the Rhinoceros ribbon is a great way to access Layouts for this. I’ve borrowed the “View” and “Page Layout” parameters as well, and both of them have some nice built-in methods for selecting Views and Layouts which should make selection a lot simpler. Any definition using the previous components should still work - older versions of the components will come in with the “OLD” tag on them.
You can get the beta now on Yak, but only if you set your package manager to “Include pre-releases”. Looking forward to see how you use it!