Jump to content

entmod block location does not move attributes


Aftertouch

Recommended Posts

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?

Link to comment
Share on other sites

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 by rlx
Link to comment
Share on other sites

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 :-)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...