Object preview not visible when inserting block composed of blocks

Object preview not visible when inserting block composed of blocks

k_geo
Contributor Contributor
410 Views
4 Replies
Message 1 of 5

Object preview not visible when inserting block composed of blocks

k_geo
Contributor
Contributor

Hello! 

 

I made a legacy drop down menu from where I can insert different blocks into the drawing. The blocks are just dwg files with the symbols drawn inside them. I use this makro inside the CUI 

^C^C-EINFÜGE;"*Path to dwg i want to insert as block/BLOCK.DWG";\;;

 

I basically clears the command line, uses the insert command and then navigates to the path where the block is saved as dwg, inserts it and explodes it, so the elements inside the block can be rearranged if necessary.

 

The problem comes with the blocks that are made our of several other blocks. Single symbols that are only polylines are previewed when dragging the cursor around the model space. But if I want to insert a block that is made out of several blocks, I cannot see the preview of it.

 

DRAGMODE is set to 2.

 

How can I make object preview visible for composed blocks?

0 Likes
411 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

I think that * (as for explode) causes the preview not to show. 

You can try it without it and EXPLODE the LAST object afterward.

0 Likes
Message 3 of 5

k_geo
Contributor
Contributor

Hello! 

I just tested it by inserting the block without the makro, just be inserting it the classic way.

You are right. It is the explode command at the beginning of my script.

Is there a way to use the explode command at the end, inside that makro? I could only find that " * " command to do it.

0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant

Something like this...

^C^C-EINFÜGE;"Path to dwg i want to insert as block/BLOCK.DWG";\;;_explode;_last;;

Message 5 of 5

k_geo
Contributor
Contributor

Hello @ВeekeeCZ and thank you for your help. It worked, after I modified the macro a bit.

 

 

^C^C-EINFÜGE;"Path to BLOCK.DWG";\;;;URSPRUNG;L;

 

 

I am using the German commands. So for English software users, URSPRUNG will be EXPLODE. The L is selecting the last inserted object. In the macro from your last post, there was a semicolon missing somewhere, but it probably would have worked if added.

 

Edit your macro to this so others find it immediately:

^C^C-EINFÜGE;"Path to dwg i want to insert as block/BLOCK.DWG";\;;;_explode;_last;

I will accept as solution.

 

Thanks! This forum is a great place.