[quote user="Xavi García Maranges"]Set
oLevel = ActiveDesignFile.Levels(
"Por defecto"
)
[/quote]
One more comment: This access to a level object is correct, but is not robust in case the level does not exit and the code crashes with error. If it's ensured the level exists (e.g. dgnlib is used or your code creats the level), the code is fine.
Regards,
Jan