componentdefinition.insertion_point = point # 检索插入的点对象 point = componentdefinition.insertion_point 注意:在这里主要说明的的在SketchUp2020已经不支持这个方法了所以在运用时需注意。 5、获取组件定义实例 #instances ⇒ Array<Sketchup::ComponentInstance> instances方法用于返回此组件定义的组件实例数组。 示...
3、组件的make_unique #make_unique ⇒ Sketchup::ComponentInstance 当我们使用了SketchUp中的复制工具或在组件浏览器中拖入放置了多个同一组件或调用了copy方法操作组件时,这些组件会共享同一个组件定义,即componentDefinition。只有当我们调用了make_unique方法后才会唯一化组件定义。 调用方法: # 选中两个copy后的组...
PRO This is a Pro only feature. Dynamic Components that use unique textures (textures that do not ship with SketchUp, such as photographic textures of a specific material), must be embedded in the Dynamic Component to be accessible when that component is used on different computers. To embed ...
Table of Contents Introduction to components Basic rules of modeling in SketchUp Groups and Components vs Layers Making components Creating Components Determining the best point for component origin
动态组件可以通过Ruby脚本进行扩展,实现更复杂的功能,如参数化设计、实时更新等。 示例代码 #示例:创建一个动态组件 requiresketchup defcreate_dynamic_component model=Sketchup.active_model entities=model.active_entities #创建一个矩形 rectangle=entities.add_face([0,0,0],[10,0,0],[10,10,0],[0,10,0...
2, 组件指引___Point_Component.rar (1.74 KB, 下载次数: 56) 该插件只能针对组件物体操作,右键点击组件,在菜单中选择“point to component”,然后根据自己需要任选场景中一点,插件会自动旋转组件,使得组件Z轴的延长线正好穿过我们选择的点上。该插件的开发用途是可以方便摆放室内的灯具组件,方便调整其照射方向。
Live Component Configuration Dynamic components are a new type of customizable parametric objects, and you can manage them in SketchUp in this release. To import components directly into SketchUp Pro’s Latest Version, open the 3D Image Bank in SketchUp and navigate to our SketchUp Lab Live compon...
# The SketchUp Array class adds additional methods to the standard Ruby Array Expand Down 2 changes: 1 addition & 1 deletion 2 lib/sketchup-api-stubs/stubs/Geom.rb Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may be interpreted or compi...
dynamic_component_attribute.hInterfaces forSUDynamicComponentAttributeRef dynamic_component_info.hInterfaces forSUDynamicComponentInfoRef edge.hInterfaces forSUEdgeRef edge_use.hInterfaces forSUEdgeUseRef entities.hInterfaces forSUEntitiesRef entity.hInterfaces forSUEntityRef ...
用Ruby作为其插件开发的主要语言,因此,以下步骤将指导你如何在你的计算机上设置Ruby环 境,并安装SketchUp及其API。 1.安装安装SketchUp: ◦访问SketchUp官方网站下载最新版本的SketchUp。 ◦根据操作系统选择合适的安装包进行安装。 ◦安装过程中,确保选择包含Ruby开发环境的选项。