Drafthorse for Rhino 8

Thanks @crz_06 - that example is perfect. Please try out v1.0.3 on the Package Manager - I added a toggle that should allow you to turn on raster mode for PDF printing. I also removed the limits on the DPI, so for oversized PDFs you can ramp down the DPI. please note the “Scale” option on the Layout from Bounding Box component - it allows the layouts to stay smaller (some programs like adobe reader don’t like 20m x 20m pdfs for some reason)

The reason your definition keeps saving is because of the new “Query Pages” component - it keeps refreshing and re-activating the Layout PDF component as long as it’s set to “synchronize”. Turns out The Layout PDF component doesn’t need a toggle after all, so changing to a button to activate should get around this problem.

drafthorse_1.gh (334.1 KB)

1 Like

@osuire Raster/Vector has been added to the PDF Layout component in v1.0.3. I also went through and reviewed all the “run” inputs - there were quite a few that do work with a button rather than a toggle/constant value and I removed the warning text. Thanks for your feedback!

2 Likes

@osuire For baking to layouts, please check out the absurd workaround in this example.
DH_LayoutFromBBox_MakePageActive_Example.gh (56.9 KB)

I’m still working on the modified bake component to make this goofiness unnecessary

1 Like

@parametricmonkey1 - please try out the new pre-release (1.1.1-beta - make sure "Include pre-releases is checked) - there’s a “hide layer in detail” and a “hide object in detail”.

Here’s a modified version of your demo script from this thread with the new components.
Detail view v5.gh (23.2 KB)
Detail view.3dm (347.8 KB)

Drafthorse it is no longer developed for Rhino7?

Thanks @jokamm. I need to do some more testing on this. The component didn’t like the same data structure that the C# component accepted so I need to dig a little deeper when I get a moment.

I’m going crazy with the install of Drafthorse.
I keep getting this error message at the launch of GH :

@jokamm any idea why Rhino/GH refuses to load the new version here ?

Yeah, that was a change in Rhino 8. Initially the Layout Page component was not exposed in the grasshopper UI, so I made a component for Drafthorse that was nothing more than a skin of the Param. In the update, the Layout Page component was added to the UI in the Rhino tab and the Param itself was sealed. New version of Drafthorse is up and should fix issues. Updates to Example files are in process.

3 Likes

Works like a charm now. Thanks !!!

@jokamm First I like to thank you for this great plugin.
Unfortunately, I am experiencing an issue with the latest version, 1.1.21, in R8 SR13 Windows.
When I open one of the example file, like DH_DocumentAndLayoutText_Example.gh’, an error pops up:
The file contains 1 unknown object ‘PageLayout’.

When I click Download and install, It installed Drafthorse 1.1.21 again, even if it was the current version at startup. Next I get an IO error ’ Input parameter chunk is missing. Archive is corrupt.

While running the example files I get errors like 'query pages component report an error 'Input parameter index[-1] too low for Component Edit Details (seems It expects a GUID from the Deconstruct Layout component
Other Layout component generate errors 'No page found at Index 1…

or No page found at index 1.

Tested on multiple systems with the same result. One PC with Drafthorse 1.03, all works fine.
I tried un/reinstall to 1.03 on the newer system but without succes.

In the package manager, Drafthorde 1.1.3 is not the top most choice, even if the release date is more recent. I assume This is ok, since I let Rhino manage the package updates

I hope someone can shed a light on how to solve this. Or tell me how to

Hi @Mario_ILL I believe I have resolved the bugs that you mentioned. Please download the latest build (1.1.31), and get the new example files from DraftHorse | Food4Rhino. Thanks!

1 Like

@jokamm Thank you for this fast solution, 1.1.31 solves the issue. Much appreciated!