Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7790279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:32:02+00:00 2026-06-01T21:32:02+00:00

How to convert a set of connected lines to a solid in CAD applications?

  • 0

How to convert a set of connected lines to a solid in CAD applications? Tool is being used can be AutoCAD, SketchUp, Solidworks, FreeCAD, or any other software you may know that can do this simple task painlessly. Note that the following graphics is only for demonstration. The desired resulting should be a valid CAD solid to be able apply all related operations such as boolean ones etc.

enter image description here

Just remember the job needs to be done thousands times so manual approaches are not suitable. Even some help to write a piece of code for this job is much appreciated (in any language), so you may explain how to code a simple DXF writer for just Solid, for example. Our play with some DXF exporters in Python was not successful.

Upadate: a simple Ruby code for SketchUp or VBA code for AutoCAD or Python for FreeCAD could be of most help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:32:03+00:00Added an answer on June 1, 2026 at 9:32 pm

    Here are some Google SketchUp Ruby API snippets. It’s very simple, using the Edge#find_faces method that will make SketchUp try and find possible faces for the given edge. https://developers.google.com/sketchup/docs/ourdoc/edge#find_faces

    Find faces for current selection:

    # Find faces for selected edges:
    model = Sketchup.active_model
    model.start_operation( 'Find Faces in Selection', true )
    for entity in model.selection.to_a
      next unless entity.is_a?( Sketchup::Edge )
      entity.find_faces
    end
    model.commit_operation
    

    Find faces for current context:

    # Find faces for current context:
    model = Sketchup.active_model
    model.start_operation( 'Find Faces in Current Context', true )
    for entity in model.active_entities.to_a
      next unless entity.is_a?( Sketchup::Edge )
      entity.find_faces
    end
    model.commit_operation
    

    Find faces for all edges in model:

    # Find faces for all edges in model:
    model = Sketchup.active_model
    model.start_operation( 'Find Faces in Whole Model', true )
    for entity in model.entities.to_a
      next unless entity.is_a?( Sketchup::Edge )
      entity.find_faces
    end
    for definition in model.definitions
      next if definition.image?
      for entity in definition.entities.to_a
        next unless entity.is_a?( Sketchup::Edge )
        entity.find_faces
      end
    end
    model.commit_operation
    

    If you need to process a batch of DWG file for this you can automate that as well using Model#import to import the DWG files. https://developers.google.com/sketchup/docs/ourdoc/model#import

    This assumes that the edges are bounding coplanar surfaces. You will only get a solid if the wiregrid you import can represent one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a solution to convert a set of files using the terminal
I'm trying to convert json result to set of objects, but i get an
I have a set of WMV files that I need to convert to H.264.
Is there a way to set col as dynamic or convert it in some
I want to create a custom set that will automatically convert objects into a
I have a set of records indexed by id numbers, I need to convert
db.Update<Luna.Record.TB_ITEM>().Set( x => x.ITEM_DURABILITY == Convert.ToInt32(quantity)) .Where(x => x.ITEM_POSITION == Convert.ToInt32(position)) .Execute(); How will
convert this: $300 to this : 300 can't do it with intval() or (int)
I have to convert a set of C# classes (class library) to SQL tables
I'm trying to set Markerbackgrounds for a notepad++ plugin I'm writting so certain lines

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.