Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/13/2022 in all areas

  1. Sorry if I'm muddying the waters but what @jim78b is asking seems a bit counter intuitive to me. What is the benefit of not using the block editor?
    2 points
  2. So your process is: - Select Block - Get rotation, insert point, block name - Explode Block - Edit 'Block' Entities - Purge Existing Block - Make block with old and edited entities - Rename Block to old block name That is all possible but trying to work out if there is a more efficient way. if you can make a list of the process then an internet search is your friend, you just need to plug it all together: First LISP - Get the ID of the last entity to be edited (for later) - Select Block (use entsel and a check that it is a block the was selected) - Get block insertion data - Explode Block (use command 'explode'). End this LISP here - Edit Block Entities New Lisp Here - Purge Existing Block (search for purge, or (command "Purge....) ) - Make block with old and edited entities (loop backwards with 'entlast' or similar to the last edited object from step 1 till you have done all the block objects added to a selection set) - Create block (internet search is your friend) - Rename Block to old block name (internet search is your friend as well) - Paste the block back in again using the data taken from above This will work if there is only 1 instance of the block in the drawing of course. Multiple instances you would have to ssget by block name to make a list of all the insertion points and rotations for insertion in the last stage, then delete all the existing blocks before the purge. Not a simple one but possible... however I think edit the block instead of remaking it will be a lot simpler if that is possible. Full of problems and potential for errors though. Should get your nearly there.
    2 points
  3. Did you find the macro searching as I suggested or where I said it should be on the Ribbon? In the CUI search for the "Write Block" command, the macro should be: Name Description Command Name WBLOCK Macro ^C^C_wblock Small image RCDATA_16_SAVE_BLOCK_AS Large image RCDATA_32_SAVE_BLOCK_AS
    1 point
  4. Enter WB on the command line will start the wblock command but you should already have a macro. Click the A (AutoCAD) icon in the upper-left and enter wblock in the search bar that appears to the right to see a list of options to start commands. It should be on the Insert drop-down on the Block panel on the Insert tab of the Ribbon.
    1 point
  5. Wblocking it out to a separate drawing like I proposed in my first reply would give you full access to all commands!
    1 point
  6. Yes but the OP has a reason that he doesn't want to go that way I think
    1 point
  7. Wouldn't the easiest way to start and end with the same block name while editing the entities and preserving the insertion point, scale, layer and other properties be to simply use BEDIT (Command)? If there's more than one insertion of that block exploding only one would not allow you to purge the name or use the same name for the new block.
    1 point
  8. No it's not but if you would attach an small drawing with a before and after example and explain in detail what you need to accomplish we might be able to help you. There's no way to edit or refedit an exploded block insertion because it wouldn't be a block insertion anymore. Even if you could where would the insertion point be should you need another inserted? If you want to edit or refedit an existing block just use bedit or refedit. To create and modify a new block from an existing one I'd wblock the block out to it's own drawing, edit and rename that drawing, then insert it as a new block in the original drawing.
    1 point
  9. If that hatch was the only object whose color was set to ByBlock then changing the color of an insert of that block would only change the color of that hatch.
    1 point
  10. http://docs.autodesk.com/ACD/2011/ENU/filesALR/WS1a9193826455f5ff1a32d8d10ebc6b7ccc-68a2.htm you can make directory with vl-mkdir https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-drawing-from-lisp/m-p/787043/highlight/true#M12701 you can make dwg file with vla-add (defun c:makeempty ( / filepath filename) (setq filepath "c:\\test3\\") (setq filename "test3.dwg") (ex:makeempty filepath filename) (princ) ) (vl-load-com) (defun ex:makeempty ( filepath filename / doc ) (vl-mkdir filepath) (setq fullpath (strcat filepath filename)) (setq doc (vla-get-templatedwgpath (vla-get-Files (vla-get-preferences (vlax-get-acad-object))))) (setq doc (findfile (strcat doc "\\acad.dwt"))) (setq doc (vla-add (vla-get-documents (vlax-get-acad-object)) doc)) (vla-saveAs doc fullpath) (vla-activate (vla-item (vla-get-documents (vlax-get-acad-object)) filename)) ) https://www.cadtutor.net/forum/topic/74681-cad-output-excel-specified-page/?do=findComment&comment=591539 and you can get excel cell value (current activated cell) and can move it.
    1 point
  11. The Model v's paperspace debate
    1 point
×
×
  • Create New...