# Revision history [back]

### AttachStaticModel functions doesn't work

Hi guys,

I try to use this function in my model plugin. I tried to set the model as static both in sdf file by

<static>true</static>


and in my code

can_model->SetStatic(true);


Then I called

this->model->AttachStaticModel(can_model,a_offset);


It didn't work in either way. So can you guys give me some suggestions what should I try next?

Thanks.