@mgorecki wrote:
.... to replace a polyline with an edited version of itself (removed 0 length sections), but I'm having trouble figuring out how to replace the polyline when it's inside of a block. ....
Clarify some things....
Are you talking about taking an already-edited version of a specific Polyline and putting it into the Block definition in place of a specific Polyline that hasn't been fixed? Or are you talking about running the remove-0-length editing process on a Polyline inside the Block definition? That is, actual replacement vs. editing in place? I don't know how to do the former other than with a BEDIT or REFEDIT command, which would involve User work in each Block definition, but I think I know how to approach the latter in an automated way.
Also, if the latter, is it a particular Polyline that has to be identified [harder], or would you want to just run the remove-0-length process on any and all Polylines that may be in the Block definition [easier]? If a particular one, how can it be distinguished from others? For instance, is it on a Layer that no other Polyline(s) will be on [easier]? Or does it have a specific configuration that must be detected somehow [harder]?
In the case of a specific shape, and if it is always positioned in the same relationship to the insertion base point in every Block in which it occurs, the editing-in-place could be done as a mere replacement of the coordinates listing, and maybe some more pieces of entity data [e.g. if there are varying widths], without having to actually run the remove-0-length process on it.
Kent Cooper, AIA