Index: trunk/src_plugins/export_stl/exp_fmt_amf.c =================================================================== --- trunk/src_plugins/export_stl/exp_fmt_amf.c (revision 35984) +++ trunk/src_plugins/export_stl/exp_fmt_amf.c (revision 35985) @@ -146,5 +146,8 @@ amf_print_footer, /* model load */ + "amf", + "amf::translate", NULL, + "amf::rotate", NULL, amf_solid_fload }; Index: trunk/src_plugins/export_stl/exp_fmt_stl.c =================================================================== --- trunk/src_plugins/export_stl/exp_fmt_stl.c (revision 35984) +++ trunk/src_plugins/export_stl/exp_fmt_stl.c (revision 35985) @@ -115,5 +115,8 @@ stl_print_footer, /* model load */ + "stl", + "stl::translate", "stl-translate", + "stl::rotate", "stl-rotate", stl_solid_fload }; Index: trunk/src_plugins/export_stl/export_stl.c =================================================================== --- trunk/src_plugins/export_stl/export_stl.c (revision 35984) +++ trunk/src_plugins/export_stl/export_stl.c (revision 35985) @@ -333,6 +333,9 @@ void (*print_footer)(FILE *f); /* model load */ + const char *attr_model_name; + const char *attr_xlate, *attr_xlate_old; + const char *attr_rotate, *attr_rotate_old; stl_facet_t *(*model_load)(rnd_hidlib_t *hl, FILE *f, const char *fn); } stl_fmt_t; Index: trunk/src_plugins/export_stl/stl_models.c =================================================================== --- trunk/src_plugins/export_stl/stl_models.c (revision 35984) +++ trunk/src_plugins/export_stl/stl_models.c (revision 35985) @@ -206,8 +206,8 @@ int on_bottom = 0; const char *srot, *sxlate; - mod = pcb_attribute_get(&subc->Attributes, "stl"); - if (mod != NULL) + mod = pcb_attribute_get(&subc->Attributes, ifmt->attr_model_name); + if (mod == NULL) return -1; if (pcb_subc_get_origin(subc, &ox, &oy) != 0) { @@ -217,12 +217,12 @@ pcb_subc_get_rotation(subc, &rot); pcb_subc_get_side(subc, &on_bottom); - sxlate = pcb_attribute_get(&subc->Attributes, "stl::translate"); - if (sxlate == NULL) - sxlate = pcb_attribute_get(&subc->Attributes, "stl-translate"); - srot = pcb_attribute_get(&subc->Attributes, "stl::rotate"); - if (srot == NULL) - srot = pcb_attribute_get(&subc->Attributes, "stl-rotate"); + sxlate = pcb_attribute_get(&subc->Attributes, ifmt->attr_xlate); + if ((sxlate == NULL) && (ifmt->attr_xlate_old != NULL)) + sxlate = pcb_attribute_get(&subc->Attributes, ifmt->attr_xlate_old); + srot = pcb_attribute_get(&subc->Attributes, ifmt->attr_rotate); + if ((srot == NULL) && (ifmt->attr_rotate_old != NULL)) + srot = pcb_attribute_get(&subc->Attributes, ifmt->attr_rotate_old); if (*first) { ofmt->new_obj(0, 0, 0);