David,
Thank you very much for the information.
I have played with the resetblock method and it is necessary to try to save
the previous settings of the block before resetting and this doesn't always
workm especially if a flip is involved.
Consequently this is what I now use:
(if (not (vl-catch-all-error-p (vl-catch-all-apply 'vl-cmdf
(list ".insert" (strcat
(vl-filename-base bnmr) "=" bnmr) "s" "1" "0,0" "0")
)
)
)
(entdel (entlast))
)
This does the trick nicely except for the fact that it is a command in lieu
of vlisp.
TDP
"David Kozina" wrote in message
news:6329985@discussion.autodesk.com...
Well, I doubt I can help, but if the block truly has been re-defined in your
drawing, and it *still* isn't doing what it's supposed to, could something
as simple as a "RESETBLOCK" perhaps work? (I don't know what havoc that may
wreak on your drawing.)
I don't know what functions you use to access your DBs, but just in case you
weren't aware, Tony Tanzillo posted code long ago in the customization
discussion group that made accessing and changing DB properties easier - See
Thread "DynamicBlock method" started by Marc'Antonio Alessi on 05/12/2005.
I'm also not sure what version of AutoCAD you are using - we are still using
2008 at our office.
hth,
David Kozina
PS - If you have a DB, and later need to redefine it making EXTENSIVE
changes - would it perhaps be more effective to give it a new name
altogether, and replace the existing insertions with the new block? ie,
extract the old properties of the original block that are still applicable,
and re-insert the new one at the original locations?
"The Dark Princess" wrote in message
news:6329930@discussion.autodesk.com...
It's a problem with visual lisp and dynamic blocks
If you don't know visual lisp then no explanation will help and you cannot
help.
If you know visual lisp then the coding is understood and the picture says
1000 words.
TDP
wrote in message news:6329553@discussion.autodesk.com...
Based on the clear and precise explanation of the issue and the functions
leading to the problem, I'd say you need to reverse the polarity of the
slamagen.