TheSwamp
Code Red => VB(A) => Topic started by: iliekater on March 29, 2009, 02:19:58 PM
-
I would like to a ask a question about creating blocks with VBA . You see , I don't want to create block of a circle , a text etc , instead I need to create a block that will actually contain everything drawn in the screen . As far as concerning the inserion point , the (0,0,0) point will be fine , but my problem is I don't know how to handle VBA to select objects (in this case all of the objects) .
-
Use a SelectionSet to get the objects, place those into an Array of objects, use the CopyObjects method to place them in the new bloick definition.
Unless you want ALL modelspace objects in the block, then just loop through the ModelSpace obejcts and place those into the Array to use with CopyObjects.
-
OK , thanks , I'll give it a try .