# Retaining model attributes while importing model into Sketchup

**URL:** <https://forums.sketchup.com/t/retaining-model-attributes-while-importing-model-into-sketchup/31403>\
**Category:** Ruby API\
**Tags:** import, model, ruby, attributedictionary\
**Created:** [September 27, 2016, 2:35pm UTC](https://forums.sketchup.com/t/retaining-model-attributes-while-importing-model-into-sketchup/31403 "2016-09-27T14:35:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampath\_kumarkrishnan](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@sampath\_kumarkrishnan](https://forums.sketchup.com/u/sampath_kumarkrishnan)\
**Post date:** [September 27, 2016, 2:35pm UTC](https://forums.sketchup.com/t/retaining-model-attributes-while-importing-model-into-sketchup/31403/1 "2016-09-27T14:35:07Z")

</div>

- I imported a DXF file into Sketchup

- Added some attributes to the model’s attribute\_dictionaries

- Saved the model as SKP. (say Model1)

- Created a new empty model. Imported the recently saved SKP (Model1).

- On examining the attribute\_dictionaries of the current model, I was not able to find the attributes that I set for the Model1 before saving it as SKP.

I understand that importing a model in sketchup, imports the components of the model and the attributes were set to the model itself. But is there any way, where we can save attributes for a model and retain them even importing it into another model ?

---

<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:** [September 27, 2016, 4:30pm UTC](https://forums.sketchup.com/t/retaining-model-attributes-while-importing-model-into-sketchup/31403/2 "2016-09-27T16:30:55Z")

</div>

> [@sampath\_kumarkrishnan](#):
>
> Created a new empty model. Imported the recently saved SKP (Model1).
> 
> On examining the attribute\_dictionaries of the current model, I was not able to find the attributes that I set for the Model1 before saving it as SKP.

**The import model brings the SKP in as a component.** What you see in the new model is an instance of the imported definition.

So the attribute dictionaries will be attached to the component definition (most likely.)
