Aftertouch Posted June 19, 2018 Share Posted June 19, 2018 Hello all, I am using some reactors to manipulate my drawings. Since i use reactors, i have to use ENTMOD to update drawing entites. Now i want to move a block with attributes. When i entmod the block, the block moves ass it should, but it leaves its attributes behind... What do i have to do to get the attributes moving aswell? Quote Link to comment Share on other sites More sharing options...
dlanorh Posted June 19, 2018 Share Posted June 19, 2018 Have you updated the block after entmod (entupd)? Does "attsync" solve the issue? Quote Link to comment Share on other sites More sharing options...
rlx Posted June 19, 2018 Share Posted June 19, 2018 (edited) or just use vla-move (or even vla-TransformBy ) and make sure you move the (main) block object (and (setq obj (vlax-ename->vla-object (car (entsel)))) (setq p1 (getpoint "\nBase : ")) (setq p2 (getpoint p1 "\nTarget : ")) (vla-move obj (vlax-3d-point p1) (vlax-3d-point p2)) ) Edited June 19, 2018 by rlx Quote Link to comment Share on other sites More sharing options...
Aftertouch Posted June 19, 2018 Author Share Posted June 19, 2018 or just use vla-move (or even vla-TransformBy ) and make sure you move the (main) block object (and (setq obj (vlax-ename->vla-object (car (entsel)))) (setq p1 (getpoint "\nBase : ")) (setq p2 (getpoint p1 "\nTarget : ")) (vla-move obj (vlax-3d-point p1) (vlax-3d-point p2)) ) Ah, that did the trick... was thinking way to complex. Thanks :-) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 19, 2018 Share Posted June 19, 2018 Hello all, I am using some reactors to manipulate my drawings. Since i use reactors, i have to use ENTMOD to update drawing entites. Now i want to move a block with attributes. When i entmod the block, the block moves ass it should, but it leaves its attributes behind... What do i have to do to get the attributes moving aswell? When performing the entmod operation, you are only updating the DXF data associated with the INSERT entity, not the ATTRIB entities which follow it. Therefore, if you wish to move an attributed block reference using entmod, you would need to perform the entmod operation on the INSERT and all ATTRIB entities which follow (also accounting for attributes with justification set to something other than Left). Easier to change the InsertionPoint property of the block, or use the ActiveX Move method. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.