I imported a graphic from CAD and found that it did not generate faces internally. What Ruby command should I use to make it generate faces internally. I remember the API described this related content, but it happened too long ago and I really can’t remember.
I have tried add a line,but it failed.

The Edge#find_faces method is used to create all of the Faces that can be created with this edge.
The Entities#add_face method is used to create a face. You can call this method a number of ways…
s4u MakeFace | SketchUp Extension Warehouse
Eneroth Face Creator | SketchUp Extension Warehouse
Utilities Tools | SketchUp Extension Warehouse
SketchUp Plugins | PluginStore | SketchUcation ithil_facefinde_reverseface
SketchUp Plugins | PluginStore | SketchUcation TIG addfaces
Emphasis by me …
SketchUp and its APIs do not have a native method to “devine” geometry from 2D graphic images.
There is at least one extension written by @jimhami42 that can draw geometry from image files, (I think BMP format.)
thank you for your reply.

