0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

sketchupでruby その9

Last updated at Posted at 2021-04-24

概要

sketchupでrubyやってみた。
skpを召喚してみた。

写真

bed.png

サンプルコード


def bed
   model = Sketchup.active_model
   entities = model.active_entities
   point = Geom::Point3d.new 0, 0, 0
   transform = Geom::Transformation.new point
   path = Sketchup.find_support_file "Bed.skp", "Components/Components Sampler/"
   definitions = model.definitions
   componentdefinition = definitions.load path
   instance = entities.add_instance componentdefinition, transform
end

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?