Print Page | Close Window

Replace block with non block object

Printed From: CAD Forum
Category: EN
Forum Name: Civil 3D, Map, InfraWorks
Forum Description: Discussion about mapping and GIS applications Map, Civil3D, InfraWorks, MapGuide and Raster Design
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13648
Printed Date: 12.May.2026 at 06:07


Topic: Replace block with non block object
Posted By: JestAs
Subject: Replace block with non block object
Date Posted: 13.Oct.2021 at 13:24
Hi
I need a lisp routine to replace block with non block object.....such as closed polyline or mpolygon, and preserve block's object data table.
I know it is possible to replace block with another block and preserve original OD ("ReplaceBlock.vlx" routine, found on this forum.)
Is it possible?



Replies:
Posted By: Vladimir Michl
Date Posted: 13.Oct.2021 at 13:28
What should be the purpose of such replacement? Do you mean putting e.g. a hexagon in place of the former block reference? What is the difference to putting in a block containing a hexagon?

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: Kent Cooper
Date Posted: 15.Oct.2021 at 22:48
What do you mean by "preserve block's object data table"?  Part of that is the mere fact that it's a Block, which it can't be any more if you replace it with a non-Block object.  Another part of that is an insertion point, which could possibly be relevant to its replacement, depending on what kind of object it is, but if it's a Polyline, the obvious entry would be for its first vertex, which may have no meaningful relationship to the Block's insertion point.  Other parts that probably will not be relevant are scale factors, rotation angle, and Block name.  So what about it do you hope to "preserve"?



Print Page | Close Window