Marcelo, I don't think ENTMOD changed any, I know that the MLEADER fill and border options did however. I also have a program that sets the background mask and frame on MTEXT that the program first creates using VL-CMD and setting options. My routine had to be changed to check what version of AutoCAD was being used and then apply the correct function.
Nothing changed with dynamic block visibilities in the 2010-2017 AutoCAD versions. All I remember is that the UNDO calls have to be different for newer (I think 2013 and above) not containing command calls within them.
Although unrelated, here's my chunk of code for the MLEADER version issue:
(initcommandversion 1)
(vl-cmdf "._mleader" "o" "m" "2" "c" "m" "x" arrwpt pikpt tagval)
(setq ent (entlast))
(vla-put-TextJustify (vlax-ename->vla-object ent) 2)
(vla-put-LandingGap (vlax-ename->vla-object ent) 0.046875)
(if (>= (atof (substr (getvar "acadver") 1 4)) 19.0)
(vla-put-TextBackgroundFill
(vlax-ename->vla-object ent)
)
(progn
(setq ed (entget ent))
(setq new291 (cons 291 1)) ;background color on?
(setq new292 (cons 292 1)) ;background fill on?
(setq new141 (cons 141 1.1)) ;offset for mask
(setq ed
(subst new141
(assoc 141 ed)
ed
)
)
(entmod ed)
(setq ed
(subst new291
(assoc 291 ed)
ed
)
)
(entmod ed)
(setq ed
(subst new292
(assoc 292 ed)
ed
)
)
(entmod ed)
)
)
(vla-put-TextFrameDisplay
(vlax-ename->vla-object ent)
)
(entupd ent)
ADN CAD Developer/Operator