> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic Import Operations

export const YouTubeVideo = ({src, title, caption}) => {
  return <Frame caption={caption}>
      <iframe className="w-full aspect-video rounded-xl" src={`https://www.youtube.com/embed/${src}`} title={title} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
    </Frame>;
};

<YouTubeVideo src="hhWKbSlEOgI" />

While modeling implicit bodies directly in nTop offers advantages for parameterizing design spaces, you can also work with imported implicit bodies as well as discrete geometry like CAD files and meshes. Use the *Conversion* blocks in the *Exchange* tab of the ribbon to convert imported discrete geometry into implicit bodies.

## Working with CAD

nTop supports both multi-body parts and assemblies and treats CAD imports as collections of bodies; even if the import only contains a single body. Some operations require identifying the specific CAD body or face by creating a CAD body or face variable.

<AccordionGroup>
  <Accordion title="Extraction by Manual Selection on Screen">
    The quickest way to convert an imported CAD part into an implicit body is to extract directly from the part shown on the screen. Both the CAD Body and Face can be converted into implicit bodies as well as made into CAD Body or Face Variables.

    **Double-Click** to select the whole body, then right-click to either “Create CAD Body Variable” or “Convert CAD Body to Implicit Body”

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_Extract-Double-Click.gif" />
    </Frame>

    **Single-Click** to select a face, then right-click to either “Create CAD Face Variable” or “Convert CAD Face to Implicit Body”

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_Single-Click-Extract.gif" />
    </Frame>

    **Hold Ctrl** to select more than one body or face, then “Create CAD Body List Variable” or “Convert CAD Body to Implicit Bodies”. A List is created if more than one item is selected.

    In this example, we choose 2 faces, so the block will have a (2) behind its name, with 2 being the size of the list.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_CTRL-Select-Extract.gif" />
    </Frame>

    Edges or vertices can also be extracted the same way, but they can only be made into CAD Vertex or CAD Edge Variables and not implicit bodies.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_CAD-Edge-Extract.gif" />
    </Frame>
  </Accordion>

  <Accordion title="Extraction by Properties">
    Open the Properties Panel of the Imported part. Expand the Bodies Properties until you reach the desired element. Drag it into the Notebook to create a block from it.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_Extract-Properties-Standard.gif" />
    </Frame>
  </Accordion>

  <Accordion title="Extraction by Properties Using CAD View">
    When opening the properties panel of an imported CAD part or assembly, there are many property chips to choose from. To simplify extraction we added a CAD View filter, which hides all properties except for CAD bodies.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_Extract-Properties-CAD-View.gif" />
    </Frame>
  </Accordion>

  <Accordion title="Extraction by CAD Blocks">
    In nTop 5.8, we released a series of new blocks that are designed to help users interact with CAD bodies more efficiently.

    **To extract CAD Faces:**

    Use the **Get CAD Faces**block:

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/Get-CAD-Faces.jpg" />
    </Frame>

    **To extract CAD Bodies:**

    Use the **Get CAD Bodies**block:

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/Get-CAD-Bodies.jpg" />
    </Frame>

    You can also use the **Get CAD Bodies by Name**or **Get CAD Faces by Name** block to further refine your selections:

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/Get-CAD-Bodies-by-Name.jpg" />
    </Frame>
  </Accordion>

  <Accordion title="Extraction by Color Blocks">
    You can extract CAD Faces and CAD Bodies using our two color based blocks:

    * **Get CAD Faces by Color**
    * **Get CAD Bodies by Color**

    In the gif below, the Color property chip is extracted from the face/body. We recommend this method as it directly links to color, as opposed to inputting the RGB values of an empty **Color** block.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/Get-CAD-by-Color.gif" />
    </Frame>

    If you import your CAD part and it doesn't have any color, make sure you change the Display Mode to “CAD Color”.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/Toggle-CAD-Color.gif" />
    </Frame>
  </Accordion>

  <Accordion title="Turning Multiple CAD Faces into a Single Surface">
    Create a CAD Face List of faces you want to merge, then use the **Stitch CAD Surface Bodies** or the **Stitch Adjacent CAD Faces** block. These blocks merge multiple sheets within a tolerance range and output the results as a list.

    This block comes auto-populated with a list, however. ***You cannot input a list into a list.*** You need to delete the auto-populated list to input the CAD faces.

    <Frame>
      <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_15_Single-Surface-1.gif" />
    </Frame>
  </Accordion>
</AccordionGroup>

## Optional Challenge Problem

\*\*Estimated Time to Complete:\*\*25 minutes

### Challenge Problem Statement

Feel free to try our nTop Essentials challenge problem after completing the optional test problem.

Given the CAD file below, shell the part with a 3mm wall thickness inwards and add a hole for powder removal. Then, mesh the part with a 1mm tolerance and export it as a 3MF. For an added challenge, the hole for powder removal should resemble the shape highlighted below. Your final result should look something like the second image if you choose to create a hole resembling that CAD face.

<Frame>
  <img src="https://files.learn.ntop.com/lessons/working-with-imported-geometry/101_22_OptionalChallenge.jpg" />
</Frame>

[101\_22\_bracket.x\_t](https://files.learn.ntop.com/Courses/101%20nTop%20Essentials/Models/101_22_bracket.x_t)

[*Report File*](https://docs.google.com/forms/d/1Ev9UFCZGo1aefglpX6E8sQ6Hr-Y6ILhGSZxE3paCqy4/edit)

### Challenge Problem Solution

This video reviews the answer to the nTop Essentials challenge problem to shell a part, add holes for powder removal, and then export it as a 3MF file.

**Example File:**

[101\_23\_AnswerChallenge.ntop](https://files.learn.ntop.com/Courses/101%20nTop%20Essentials/nTop%20Files/101_23_AnswerChallenge.ntop)

[*Report File Issue*](https://docs.google.com/forms/d/1Ev9UFCZGo1aefglpX6E8sQ6Hr-Y6ILhGSZxE3paCqy4/edit)

*This file was last updated in nTop 5.15.2*
