Bug with Layout page size when using custom units

We use a custom unit for our models

It works fine.

However, we just encountered a strange bug.

Here is a sample Rhino model where I am experiencing the problem:
Custom Units Layout Problem.3dm (161.8 KB)

When we create a new Layout, the resulting page size is different (and much larger than) the size we input. We are pretty sure it is some Custom Unit conversion bug, which is specific to Layouts, because the conversions work perfectly with all the commands.

Let’s say I create a Ledger sized Layout page:

Immediately you can see something is wrong:

The Width is 431.8 custom units and the Height is 279.4

But per our Custom Units definition, one Custom Unit (Shaku) is 0.303030303 meters, or 11.93"

So in this scenario I created an 11x17 Layout page, and the result was approx. 280’ x 430’

We thought maybe there was some error of a factor of 12, but 431.8/17=25.4 not 12.

I have also tried inputting the page size in the custom unit directly:

An input of 1 x 0.5 custom units (approx 12" x 6") resulted in a page of 330 x 165 custom units, or approx. 330’ x 165’

Please advise

25.4 is exactly the conversion factor between inches and millimeters, ie:
1 inch = 25.4 mm.

Does that suggest anything at all about what is going on or are you already well aware of that?

@aiwa-tech We had not noticed that–thank you for the lead

We solved this. We had set the custom units of Layout as well as Model, which was the mistake. Reverting to the defaults in the Layout units resolved it.

Hi @brianorser,

What printer do you have uses paper measured in something other than millimeters or inches?

– Dale

Hi Dale, not sure I understand the question.

Brian

Hi @brianorser,

A Layout viewport represents the sheet of paper that will be sent to a printer or a file such as PDF. Layouts can include various views of the model and annotations like title blocks and notes.

I see you’ve changed your layout units, tolerances, etc., to something highly unusual considering the above. Perhaps I don’t understand your intention?

– Dale