Create nested block structure by instructions from txt file.

Create nested block structure by instructions from txt file.

marius.andersen3RVB4
Enthusiast Enthusiast
260 Views
1 Reply
Message 1 of 2

Create nested block structure by instructions from txt file.

marius.andersen3RVB4
Enthusiast
Enthusiast

Hundreds of blocks is floating in model space.
I will make an txt file that says
Move THIS block, into THAT block
Move THAT block, into UPPER block

The clue is moving. No copying.
Can only have one instance pr block in my model.


And be aware
THAT and UPPER block might contain objects from before.
Those objects and blocks must stay safe inside their blocks.

How can I do this in VBA
I have read Rumors that Autocad does not have functionality for nested blocks in their hierarchy.

0 Likes
261 Views
1 Reply
Reply (1)
Message 2 of 2

daniel_cadext
Advisor
Advisor

Your use of the word block is ambiguous, Mr Anderson

agenent.png

there’s both  AcDbBlockTableRecords and  AcDbBlockReferences

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx