Originally Posted by
Ed Jobe
I'm using 2018 and don't have that option. Where is it coming from?
In Civil 3D the right-click command is SetNestedObjectsByBlock. If not there it's also the command name. We could help each other a lot more if everyone added a signature with at least the AutoCAD version and vertical they're using. Different verticals have different commands and options which is probably the case here.
I've also used lisp originally by one of AUGI's leaders Peter Jamtgaard that I modified to put all objects on layer 0 and set all properties to Byblock:
Code:
; Written By: Peter Jamtgaard 12/20/2006
;^P(or C:BlkByBlock (load "BlkByBlock.lsp"));BlkByBlock
(defun C:BlkByBlock (/ colBlockReference
ActDoc dprSelection
objSelection strBlockName
)
(if (setq dprSelection (entsel "\nSelect Block: "))
(progn
(setq ActDoc (vla-get-ActiveDocument (vlax-get-Acad-Object))
dprSelection (car dprSelection)
objSelection (vlax-ename->vla-object dprSelection)
)
(vla-StartUndoMark ActDoc)
(BlkByBlock objSelection)
(entupd dprSelection)
(vla-EndUndoMark ActDoc)
)
)
(prin1)
)
(defun BlkByBlock (objSelection / colBlockReference objBlock
strBlockName
)
(if (= (type objSelection) 'ENAME)
(setq objSelection (vlax-ename->vla-object objSelection)))
(if (wcmatch (strcase (vla-get-objectname objSelection)) "*BLOCK*")
(progn
(vlax-for objBlock (vla-item
(vla-get-blocks ActDoc)
(vla-get-name objSelection)
)
(vla-put-Color objBlock 0)
(vla-put-Layer objBlock "0")
(vla-put-linetype objBlock "ByBlock")
(vla-put-Lineweight objBlock -1)
(vla-put-PlotStyleName objBlock "ByBlock")
)
)
)
(prin1)
)
(prin1)