I attached a Rhino file which I exported with the Export Block Definition component. The file has no units.
test.3dm (21.8 KB)
Is there a way to add units to the file or what’s the idea?
I attached a Rhino file which I exported with the Export Block Definition component. The file has no units.
test.3dm (21.8 KB)
Is there a way to add units to the file or what’s the idea?
Block definition s are a bit odd in that they are stored in their original units. Then om insert are translated to the drawing units.
The transformation of the instance can capture the relative unit scale.
I am not sure it is possible to add the unit scale to the block definition. @AndyPayne would need to look at that.
Thanks for the reply. I ended up baking my geometry to Rhino and then exported my blocks as Rhino files.
I’m excited for the new Export component, hope it’s ready soon…
I guess in this case there needs to be Units for the Block Definition and then units for the Export Block component also…
Usually my files are in millimeters. This job however is a mix of inches for file units and millimeters for some part diameters. It would not be a problem if I was the only person dealing with the files but as soon as I’m sending a file elsewhere, I’m a little scared sending a file without units.
Hi Martin,
I just checked the code and the Export Block Definition does save all of the units and tolerance settings from the active document with the block export. If this is not the case on your end, please let me know. One component you might want to try is the Convert Units components. This lets you set the source and target unit system and it will convert the objects accordingly.
Thanks for your reply, Andy. For some reason the file in my first post has no units. I exported it from a source file based on the Small Objects - Inches template.
This screenshot is from the test.3dm file posted above:
I get the same result martin with 8.7.
How do we establish the source units of a block definition?
Can I ask what version of Rhino you’re on? I only ask because we added the changes to include the active document units only a month or two ago… so I just wanted to check that you were on the latest service release.
I’m using the latest build.
Rhino 8 SR7 2024-4-10 (Rhino 8, 8.7.24101.10001, Git hash:master @ 2b50f55c58918e10b4e2d13323128fce6021b72c)
License type: Kommerziell, build 2024-04-10
License details: Cloud Zoo
Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 128GB)
.NET 7.0.18
Computer platform: DESKTOP
Standard graphics configuration.
Primary display and OpenGL: NVIDIA RTX A5000 (NVidia) Memory: 22GB, Driver date: 3-12-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 551.86
> Accelerated graphics device with 4 adapter port(s)
- Secondary monitor attached to adapter port #0
- Windows Main Display attached to adapter port #1
Secondary graphics devices.
NVIDIA Quadro K2200 (NVidia) Memory: 4GB, Driver date: 3-12-2024 (M-D-Y).
> Accelerated graphics device with 4 adapter port(s)
- There are no monitors attached to this device!
OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)
Anti-alias mode: 8x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High
Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 3-12-2024
Driver Version: 31.0.15.5186
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 23028 MB
Rhino plugins that do not ship with Rhino
C:\Users\martinsiegrist\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\NVIDIADenoiser\0.4.3\NVIDIADenoiser.Windows.rhp “NVIDIADenoiser.Windows” 0.4.3.0
Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.7.24101.10001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”