LK Grasshopper Components · V1.0.8.1

从模型排版到 CAD 交付,二维出图流程全面就绪 From model layout to CAD delivery, a complete 2D documentation workflow

本次版本带来三步拍图与 CAD 图框两条完整工作流,并新增图层标签、标注与文字数据、几何工具,以及多项既有组件改进。 This release introduces two complete workflows for staged drawing generation and CAD borders, together with layer tagging, annotation data, geometry tools, and improvements to existing components.

V1.0.8.1 Rhino 7 / Rhino 8 Grasshopper 二维出图与 CAD 工作流2D Drawing & CAD Workflows

版本重点Release highlights

V1.0.8.1 将模型整理、二维图纸生成、结果烘焙和 CAD 交付连接成可重复使用的生产流程。 V1.0.8.1 connects model preparation, 2D drawing generation, baking, and CAD delivery into reusable production workflows.

三步拍图Three-step workflow

排版、生成图纸、导出 CADLayout, generate, and export

耗时的 Make2D 运算改为明确触发,支持分批进度、停止请求、完整结果传递和结果缓存。 Make2D now runs only when explicitly started, with batch progress, stop requests, complete-result delivery, and result caching.

CAD 图框CAD borders

模板读取到批量交付From template reading to batch delivery

读取标准 DWG 图框、定义属性、预计算比例,并批量生成带真实图框块的 CAD 文件。 Read standard DWG borders, define attributes, pre-calculate scale, and batch-generate CAD files using the original border blocks.

新增组件New components

以下组件均为 V1.0.8.1 首次提供,其开发期间的交互、性能和稳定性完善已合并到最终能力中。 The following components are introduced in V1.0.8.1. Their interaction, performance, and stability refinements are included in the final delivered capabilities.

PrepareProfileLayout

拍图1 · 模型排版Drawing 1 · Model Layout

从有效的 Rhino 引用模型中筛选、自然排序和去重,并按模号分组排格。可输出排格模型、矩形框和模号文字,结果可直接传给“拍图2 · 生成图纸”。排格设置与分类输出选择会随 Grasshopper 文件保存。 Filters, naturally sorts, de-duplicates, groups, and lays out valid referenced Rhino models by model number. Optional outputs include arranged models, frames, and model-number text. The result connects directly to “Drawing 2 · Generate Drawings,” while layout and category-output settings are saved with the Grasshopper file.

CreateProfileDrawing

拍图2 · 生成图纸Drawing 2 · Generate Drawings

仅在点击“开始运算”后执行 Make2D,普通连线、上游变化或应用设置不会触发重算。组件支持循环分批处理、进度显示和停止请求;只有全部完成后才向下游发布完整结果。剖面、轮廓标注、角度标注、转置模型及多类图层输出均可独立控制。 Runs Make2D only after “Start Calculation” is clicked; wiring, upstream changes, and applying settings do not trigger recalculation. It supports batched processing, progress reporting, and stop requests, and publishes a downstream result only after the complete job finishes. Sections, outline dimensions, angular dimensions, transposed models, and categorized layer outputs can be controlled independently.

完整结果可保存为缓存并在重新打开文件后恢复预览、分类输出及 CAD 导出数据。恢复结果会明确标记为历史结果;旧缓存格式或 Rhino 主版本不一致时不会载入。恢复缓存不包含原始图框 DWG,后续导出仍需保留模板文件。 Completed results can be cached and restored after reopening the file, including previews, category outputs, and CAD-export data. Restored data is clearly identified as historical; older cache formats or a different Rhino major version are not loaded. The original border DWG is not stored in the cache and remains required for later export.

ExportProfileDrawingCad

拍图3 · 导出 CADDrawing 3 · Export CAD

直接使用第二步最近一次完整结果导出,不会重新运行 Make2D。可将模型编号及其加工编号分别映射到图框中真实存在的属性 Key,两类编号不能使用同一个 Key。“应用设置”和“导出 CAD”为独立操作,并保留最近一次导出的状态与时间。 Exports the latest complete result from step two without rerunning Make2D. The model number and its fabrication number can be mapped separately to attribute keys that actually exist in the border; the two identifiers cannot share one key. “Apply Settings” and “Export CAD” are separate actions, and the latest export status and time remain visible.

BakeDrawingResult

烘焙拍图结果Bake Drawing Result

接受第一步的模型排版结果或第二步的完整图纸结果,并按图元携带的 LK 图层角色烘焙到对应的“LK拍图”子图层。标注会使用相应的 Rhino 文档样式;不支持的图元将跳过并给出报告。 Accepts either the model-layout result from step one or the completed drawing result from step two, then bakes geometry into the appropriate “LK Drawing” sublayers according to its LK layer role. Dimensions use the matching Rhino document style, while unsupported geometry is skipped and reported.

GetCadBorderIcon

01 获取 CAD 图框01 Get CAD Border

从标准 DWG 模板读取一个图框块实例、块属性、外框和有效绘图区。嵌套图层可按路径末端名称识别,已读取的模板结果会被复用。 Reads one border block instance, its attributes, outer boundary, and usable drawing area from a standard DWG template. Nested layers can be identified by the final segment of their layer path, and previously read template results are reused.

CadBorderAttributesIcon

02 图框属性02 CAD Border Attributes

将 Keys 与 Values 组合为图框属性数据。数量不一致、空 Key 或重复 Key 会直接提示;Key 的匹配与去重不区分大小写。 Combines Keys and Values into border-attribute data. Mismatched counts, empty keys, and duplicate keys are reported immediately. Key matching and duplicate detection are case-insensitive.

PrecalculateCadBorderScaleIcon

03 预计算图框比例03 Pre-calculate CAD Border Scale

根据模板有效绘图区、待放置图元范围和目标平面计算适配比例。结果会保留约 5% 余量、向上取整,并再次检查内容是否完整落入有效区域。 Calculates a fitting scale from the template’s usable area, the geometry bounds, and the target plane. The result includes approximately 5% clearance, rounds upward, and is checked again to ensure the content fits inside the usable area.

GenerateCadBorderIcon

04 生成图框并导出 CAD04 Generate Borders and Export CAD

批量处理多个图框,输出预览、最终比例和处理报告,并在导出图元后复制模板中的原生图框块。仅写入模板真实存在的属性 Key;带图层标签的图元按角色建立 CAD 图层,无标签图元默认进入“LK拍图::实线”。 Processes multiple borders in batches and outputs previews, final scales, and a processing report. After exporting geometry, it copies the original border blocks from the template. Only attribute keys that exist in the template are written. Tagged geometry creates CAD layers by role, while untagged geometry defaults to “LK Drawing::Continuous.”

导出过程提供进度和停止请求;覆盖旧文件前会确认,并对文件占用、备份及失败或取消后的恢复进行处理。预览与 CAD 使用一致的插入点、旋转、统一比例和单位换算。 Export provides progress and stop requests, asks before replacing an existing file, and handles file locks, backup, and restoration after failure or cancellation. Preview and CAD placement use the same insertion point, rotation, uniform scale, and unit conversion.

DeconstructCadBorderIcon

分解 CAD 图框Deconstruct CAD Border

从图框数据中输出属性 Keys、Values、有效绘图区和外框线,便于检查模板内容或连接自定义流程。 Outputs attribute Keys, Values, the usable drawing area, and the outer boundary from CAD-border data for template inspection and custom workflows.

DefaultLayerLibrary

创建默认图层库Create Default Layer Library

在指定父图层下创建或同步 LK 默认图层体系,为图层标签、颜色预览、烘焙和 CAD 导出提供统一的图层基础。 Creates or synchronizes the default LK layer system under a selected parent layer, providing a consistent foundation for layer tags, color preview, baking, and CAD export.

LayerGeometryTag

图层图元Layer Geometry

为 Grasshopper 图元附加 LK 图层角色,并可从组件菜单切换默认图层类型。标签可继续传递给颜色预览、烘焙及 CAD 出图流程。 Attaches an LK layer role to Grasshopper geometry and lets you change the default layer type from the component menu. The tag continues into color preview, baking, and CAD documentation workflows.

DeconstructLayerGeometryTag

分解图层图元Deconstruct Layer Geometry

从带标签的图元中取回原始几何和默认图层名称,便于检查分类结果或接入自定义图层逻辑。 Retrieves the original geometry and default layer name from tagged geometry for checking classifications or connecting custom layer logic.

LayerColorPreview

图层颜色渲染Layer Color Preview

带 LK 图层标签的图元按默认图层库颜色显示;普通图元继续使用组件的颜色输入,便于在出图前核对分类。 Displays LK-tagged geometry using colors from the default layer library, while ordinary geometry continues to use the component’s color input for classification checks before documentation.

PickDimension

拾取标注Pick Dimension

引用或复制 Rhino 尺寸标注,并保留尺寸几何及有效父标注样式。数据支持预览、烘焙、复制、内置数据以及 Grasshopper 文件重开;文字和引线不会被误识别为尺寸标注。 References or copies Rhino dimensions while retaining their geometry and valid parent dimension style. Data supports preview, baking, copying, internalisation, and reopening the Grasshopper file. Text and leaders are not incorrectly treated as dimensions.

DeconstructDimension

分解标注Deconstruct Dimension

输出尺寸标注的关键点、原始值、显示文字、样式名、标注类型、平面、文字点及完整样式,便于读取和重建标注信息。 Outputs dimension key points, raw value, displayed text, style name, dimension type, plane, text point, and complete style information for inspection or reconstruction.

PickText

拾取文字Pick Text

引用或复制 Rhino 文字,保存文字几何和样式,并在预览与恢复时保留高度、旋转、对齐和字体。支持烘焙、内置数据和文件重开。 References or copies Rhino text, retaining its geometry and style as well as height, rotation, alignment, and font during preview and restoration. Baking, internalisation, and file reopening are supported.

PickTextDot

拾取注解点Pick Text Dot

引用或复制 Rhino 注解点,并保存几何、字体和颜色信息。支持预览、烘焙、内置数据和 Grasshopper 文件重开。 References or copies Rhino text dots while preserving their geometry, font, and color information. Preview, baking, internalisation, and reopening the Grasshopper file are supported.

MachiningDrawingDim

加工图标注Machining Drawing Dimensions

为世界 XY 平面内的闭合轮廓生成分段尺寸和总尺寸。非标准多段线会优先按可用分段或跨度端点重建;信息不足时仍会以 XY 包围矩形保证总尺寸输出。 Creates segment and overall dimensions for closed profiles in the World XY plane. Non-standard polylines are reconstructed from available segments or span endpoints where possible; if information is insufficient, an XY bounding rectangle still provides overall dimensions.

OutermostBoundary

最外围闭合线框Outermost Closed Boundary

从共面曲线线网提取面积最大的外围闭合边界,可指定平面或自动拟合平面与容差。组件会去除重复曲线,并谨慎处理容差范围内的微小首尾断口,不把内孔或较小区域误报为外围结果。 Extracts the largest outer closed boundary from a coplanar curve network, using either a supplied plane or automatic plane fitting and tolerance. Duplicate curves are removed, very small endpoint gaps are handled conservatively, and inner holes or smaller regions are not reported as the outer result.

EnhancedProjectPoint

增强双向投影点Enhanced Bidirectional Project Point

先沿指定方向投影,仅在正向完全没有命中时整体反向重试,并输出最近命中点及目标原始索引。默认方向为 −Z,支持常见曲线、曲面、实体、网格及可转换的第三方几何。该组件不会自动替换旧版“双向投影点”。 Projects in the specified direction first and retries the entire operation in reverse only when there are no forward hits. It outputs the nearest hit and the target’s original index. The default direction is −Z, with support for common curves, surfaces, solids, meshes, and convertible third-party geometry. It does not automatically replace the legacy Bidirectional Project Point component.

界面与入口Interface and entry points

组件位置和常用入口经过整理,便于在 Grasshopper 中快速找到二维出图相关工具。 Component locations and common entry points have been reorganized to make 2D documentation tools easier to find in Grasshopper.

新增 Grasshopper 顶部 LK 菜单New LK menu in the Grasshopper top bar

可从顶部 LK 菜单查看授权状态,进入授权或试用、机器码、官网、使用说明、插件目录、重启及“关于 LK”等常用入口。 The new LK menu provides quick access to license status, activation or trial, machine code, the official website, documentation, the plug-in directory, restart, and About LK.

二维出图组件集中到 LK / To2D2D documentation components consolidated under LK / To2D

拍图、Make2D、视图信息和图框相关工具现在集中在 To2D 分类。部分既有组件仅调整工具栏位置,原有 Grasshopper 文件中的组件身份不变。 Drawing, Make2D, view-information, and border tools are now grouped under To2D. Some existing components have only moved in the toolbar; their identity in existing Grasshopper files remains unchanged.

新增 LK / Layer 分类New LK / Layer category

默认图层库、图层标签及分解工具集中在 Layer 分类;图层颜色预览可在显示相关分类中找到。 The default layer library, layer-tagging, and deconstruction tools are grouped under Layer, while layer color preview is available with the display tools.

三步拍图设置窗口重新整理Reorganized three-step drawing dialogs

设置窗口补充流程说明、参数提示和正式示意内容,并重新组织界面以减少裁切;支持按 Esc 关闭。 The settings dialogs now include workflow guidance, parameter hints, and official explanatory visuals. Their content has been reorganized to reduce clipping, and Esc closes the dialog.

组件更新Component updates

以下组件在上一正式版本中已经存在,本次版本改善了其输出质量或操作反馈。 These components already existed in the previous release and now provide better output quality or clearer operation feedback.

Incutsection

型材内剖面Profile Internal Section

剖面生成流程更加统一,并会将无法生成或需要注意的剖面情况直接反馈给用户。 Section generation is now more consistent, and conditions that prevent a section or require attention are reported directly to the user.

PLDims

多段线尺寸标注Polyline Dimensions

现在按每个真实分段创建线性尺寸;无效段和零长度段会被跳过并给出提示,避免生成错误标注。 Linear dimensions are now created from each actual segment. Invalid and zero-length segments are skipped with a warning to prevent incorrect dimensions.

Polangdim

多段线角度标注Polyline Angular Dimensions

角度改为使用相邻分段在连接点处的切线计算,圆弧等非直线段也可参与。开放、断开或切线无效的位置会跳过并提示。 Angles are now calculated from the tangents of adjacent segments at their shared point, allowing arcs and other non-linear segments to participate. Open, disconnected, or invalid tangent locations are skipped and reported.

dimsty

创建标注样式Create Dimension Style

创建和更新样式时使用 LK 标准标注设置,不再受 Rhino 当前默认样式影响;文档中已有的同名样式会直接更新。 Styles are now created and updated from LK standard dimension settings instead of the current Rhino default. An existing style with the same name is updated directly.

BrepHatch

从 Brep 创建填充Create Hatch from Brep

对无效 Brep、缺少 Rhino 文档、非平面表皮及填充失败提供明确反馈,减少无结果但原因不明的情况。 Provides clear feedback for invalid Breps, missing Rhino documents, non-planar faces, and hatch failures, reducing unexplained empty results.

物件导出

导出物件到文件Export Objects to File

导出引用对象时会临时处理其隐藏和锁定状态,并在结束后恢复原有选择、显示及锁定状态。组件会等待 Rhino 导出结束并检查生成文件;不支持的注解点会明确跳过并报告。 Referenced objects are temporarily made available for export, after which their original selection, visibility, and lock states are restored. The component waits for Rhino export to finish and verifies the generated file. Unsupported text dots are explicitly skipped and reported.

Bake

烘焙物件Bake Objects

几何输入现在可直接接收带 LK 图层标签的图元。显式指定图层仍然优先;未指定时会自动创建并使用相应的 LK 子图层。无自定义键值时的图层应用以及不支持对象的错误反馈也已修正。 Geometry inputs now accept LK layer-tagged objects directly. An explicitly specified layer still takes priority; otherwise, the corresponding LK sublayer is created and used automatically. Layer assignment without custom key-value data and feedback for unsupported objects have also been corrected.

问题修复Fixes

修复会影响输出对应关系、界面加载或文字可读性的用户问题。 Fixes for user-visible issues affecting output alignment, interface loading, and text readability.

TrimSolid

Trim SolidTrim Solid

修复空输入分支导致输出树与任务错位的问题;非实体切割体的错误现在会回到对应结果,空结果也会稳定输出空列表。 Fixed output-tree misalignment caused by empty input branches. Errors for non-solid cutters now remain associated with the correct result, and empty results safely output empty lists.

幕墙颜色

幕墙颜色Curtain Wall Colors

修复插件打包、混淆或移动安装目录后,图片资源失效可能导致窗口或插件加载异常的问题;初始化失败时会显示明确错误信息。 Fixed an issue where image resources could become unavailable after packaging, obfuscation, or moving the installation directory, potentially preventing the window or plug-in from loading. Initialization failures now show a clear error message.

fliptree

翻转数据树Flip Data Tree

修复组件名称、端口及运行提示中的中文乱码,恢复正常可读的操作说明。 Fixed corrupted Chinese text in the component name, ports, and runtime messages, restoring readable instructions.

Merge Data01

数据组合Merge Data

修复组件名称、模式说明和运行提示中的中文乱码,使不同组合模式的说明能够正常显示。 Fixed corrupted Chinese text in the component name, mode descriptions, and runtime messages so that merge-mode guidance displays correctly.

隐藏、迁移与兼容提醒Hidden components, migration, and compatibility

旧拍图组件继续兼容既有文件Legacy drawing components remain available for existing files

旧单体拍图组件继续保留,以便既有 Grasshopper 文件加载,但不再显示于工具栏和搜索。新三步拍图使用独立组件,不会自动替换旧组件;新建流程建议使用三步工作流。 The legacy all-in-one drawing component remains available so existing Grasshopper files can load, but it is hidden from the toolbar and search. The new three-step workflow uses separate components and does not automatically replace legacy instances; use the three-step workflow for new definitions.

旧双向投影点保留但不再推荐Legacy Bidirectional Project Point is retained but deprecated

旧组件继续用于加载既有文件,但已隐藏并标记为弃用。增强版使用独立组件身份,需要在新流程中手动放置。 The legacy component remains for existing files but is hidden and deprecated. The enhanced version has a separate component identity and must be placed manually in new definitions.

AutoCAD 导出环境要求AutoCAD export requirements

CAD 图框批量导出依赖本机 AutoCAD、相应的 COM/Interop 环境、同等运行权限以及位于世界 XY 平面内的统一比例变换。建议使用 AutoCAD 2018–2026;该范围不代表每个版本均已完成逐项实测。 Batch CAD-border export requires a local AutoCAD installation, the corresponding COM/Interop environment, matching process permissions, and uniform-scale transformations in the World XY plane. AutoCAD 2018–2026 is recommended; this range does not represent exhaustive testing of every version.

Rhino 7 与 Rhino 8Rhino 7 and Rhino 8

V1.0.8.1 继续提供面向 Rhino 7 与 Rhino 8 的构建。组件位置调整不会改变既有文件中的组件身份,但建议升级前备份重要 Grasshopper 文件和 CAD 模板。 V1.0.8.1 continues to provide builds for Rhino 7 and Rhino 8. Toolbar-location changes do not change component identity in existing files, but backing up important Grasshopper files and CAD templates before upgrading is recommended.