Is there any way to force the “-Insert” command to keep the “model block” or “file block”, like the normal “Insert” command lets me do, rather than keeping both with a file name increment?
If I insert with the dialogue box, I can choose which block to keep. Example:
Can I access these options with the command-line only “-Insert” command?
I’m using the -Insert command to load in a bunch of external files. (I actually have another script choose a whole bunch of these and have it run the command several times one after the other. Very fast and useful for parametric assemblies.)
Everything is working well - the blocks inside these files are also brought in “embedded” as I require for my application… but, identical blocks with identical names get defined twice
For example, let’s say I have two block assembly models to insert into my main model:
assembly1.3dm (this model has a block def inside it: “20mm Screw” & “05mm Screw”)
assembly2.3dm (this model also has a block inside it: “20mm Screw” & “10mm Screw”)
assembly3.3dm (this model also has a block inside it: “20mm Screw”)
I can import both of these with the command-line no problem, but afterwards, in block manager, I would see:
20mm Screw 01
20mm Screw 02
On large assemblies a lot of the time I save automating the process is wasted removing duplicate block definitions. I’d really like it to just override existing blocks.
I don’t mind if it’s an advanced option, a modified clone of the original -Insert command, Python or whatever. I just need to be able to import external files and have any blocks inside the file brought in as an embedded block without making duplicate block definitions in the block manager.