# Import of CADmapper data

**URL:** <https://forums.sketchup.com/t/import-of-cadmapper-data/98215>\
**Category:** Pro\
**Created:** [July 1, 2019, 6:12pm UTC](https://forums.sketchup.com/t/import-of-cadmapper-data/98215 "2019-07-01T18:12:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard200](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/richard200/32/71457_2.png) [@Richard200](https://forums.sketchup.com/u/Richard200)\
**Post date:** [July 1, 2019, 6:12pm UTC](https://forums.sketchup.com/t/import-of-cadmapper-data/98215/1 "2019-07-01T18:12:27Z")

</div>

I imported open data with CADmapper. Now I have 1 component containing 4 main groups, buildings, park 1, park 2 and roads. In the group buildings there are maybe a 100 groups each containing 1 building. In order to use the extension DROP GC, the geometry needs to be a component. I can manually explode each group and make it a component, but for about 100 groups, it is not an efficient workflow. Can this be automated or is there an extension which does this job or can you set CADmapper to import components instead of groups?

---

<div class="post-metadata">

**Author:** ![ChrisDizon](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/chrisdizon/32/61_2.png) [@ChrisDizon](https://forums.sketchup.com/u/ChrisDizon)\
**Post date:** [July 2, 2019, 3:53am UTC](https://forums.sketchup.com/t/import-of-cadmapper-data/98215/2 "2019-07-02T03:53:02Z")

</div>

@Richard200

The Drop GC extension should work on groups. You want to be sure that there is some geometry under the group axis for it to drop onto. You will also want to be sure you are in the buildings component context and have the individual building groups selected before activating the DropGC.

CD

---

<div class="post-metadata">

**Author:** ![eric-s](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/eric-s/32/55392_2.png) [@eric-s](https://forums.sketchup.com/u/eric-s)\
**Post date:** [July 2, 2019, 4:19am UTC](https://forums.sketchup.com/t/import-of-cadmapper-data/98215/3 "2019-07-02T04:19:21Z")

</div>

As @ChrisDizon said, I can confirm that DropGC works the same for groups as components.

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [July 2, 2019, 3:32pm UTC](https://forums.sketchup.com/t/import-of-cadmapper-data/98215/4 "2019-07-02T15:32:15Z")

</div>

> [@Richard200](#):
>
> I can manually explode each group and make it a component, but for about 100 groups, it is not an efficient workflow. Can this be automated … ?

With the group of building groups selected, you can paste this into the Ruby Console (without exploding) …

```ruby
group = Sketchup.active_model.selection.grep(Sketchup::Group).first
unless group.nil?
  bldgs = group.entities.grep(Sketchup::Group)
  bldgs.each { |bldg| bldg.to_component if bldg.valid? }
end

```

---

<div class="post-metadata">

**Author:** ![niraj.poudel](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/niraj.poudel/32/63584_2.png) [@niraj.poudel](https://forums.sketchup.com/u/niraj.poudel)\
**Post date:** [July 3, 2019, 11:33pm UTC](https://forums.sketchup.com/t/import-of-cadmapper-data/98215/5 "2019-07-03T23:33:26Z")

</div>

On a side note (Since DropGC should work on groups): If you ever need to automate the conversion of groups to components, then Thom Thom’s [Groups to Components](https://extensions.sketchup.com/en/content/groups-components) extension might come in handy. 🙂
