Did you try ( entupd ) after the ( entmod ) ?
(defun c:toStyle (/ mydoc)
(vlax-for blks (vla-get-blocks (setq mydoc (vla-get-activedocument (vlax-get-acad-object))))
(if (eq :vlax-false (vla-get-islayout blks))
(vlax-for objs blks
(if (wcmatch (vla-get-objectname objs) "AcDb*Dimension")
(vla-put-stylename objs "Standard")
)
)
)
)
(vla-regen mydoc acallviewports)
(princ)
)
Following David's advice: have you tried using vla-update on each dim object?
Shot in the dark but does the command DimRegen have any effect on the insert?
Can you post a test DWG of your block(s)?
Can you post a test DWG of your block(s)?
... and an explicit description of your intent.
I worked on it last night with no luck.
No time today. :?
no idea, but maybe there are these two methods or something related/similar in vlisp?Code - C#: [Select]
dimension.RecomputeDimensionBlock(true); dimension.RecordGraphicsModified(true);