Jump to content

rotating dynamic block is loosing action


Recommended Posts

Posted

hi, i have a dynamic block, when i insert it to current drawing the actions are still there, but when rotating the block actions are loosing. Is anybody there who has the idea what was going on on my dynamic block?

 

Thanks you for all your incoming helps.

Posted

Can you post the block at all? It's likely that you're not linking all the actions and parameters together right (can be a real headache with dynamic blocks).

Posted
hi, i have a dynamic block, when i insert it to current drawing the actions are still there, but when rotating the block actions are loosing. Is anybody there who has the idea what was going on on my dynamic block?

 

Thanks you for all your incoming helps.

 

I usually find myself with the same problem... I haven´t go deeply into this problem, but I can solve it easily by sincronizing the block when this happens and voala.. the functions show up again...

 

just use attsync... select block... and done.

 

you can also use a lisp to quickly sincronize selected blocks at once... do you want me to find it for you?

 

 

You can use this lisp code to synchronize selected blocks, including normal, attributed and dynamic blocks. I've used part of a lisp code from Lee Mac to change selected blocks to current dimscale and then synchronize them... this one just synchronize them.

 

;Synchronize selected blocks Syb.lsp
(defun c:syb (/ *error* doc oldc ss sel)
 (vl-load-com)

 (defun *error* (msg)
   (if doc (vla-EndUndoMark doc))
   (if oldc (setvar "CMDECHO" oldc))
   (if (not
         (wcmatch
           (strcase msg) "*BREAK,*CANCEL*,*EXIT*"))
     (princ (strcat "\n** Error: " msg " **")))
   (princ))

 (setq doc (vla-get-ActiveDocument
             (vlax-get-acad-object)))
 (setq oldc (getvar "CMDECHO"))
 (setvar "CMDECHO" 0)
 (prompt "\nSelect Blocks to synchronize... ")
 (if (setq ss (ssget '((0 . "INSERT"))))
   (progn
     (vla-StartUndoMark doc)
     (vlax-for Obj (setq sel (vla-get-ActiveSelectionSet doc))        
       (if (eq :vlax-true (vla-get-HasAttributes Obj))
         (command "_.attsync" "_Name"
           (vlax-get-property Obj
             (if (eq :vlax-true
                   (vla-get-isDynamicBlock Obj)) 'EffectiveName 'Name)))))
     (vla-delete sel)
     (vla-EndUndoMark doc)))

 (setvar "CMDECHO" oldc)
 (princ))

Posted

Are you rotating the block using a dynamic rotate action or manually?

If with a dynamic action it is possible you haven't linked the other actions to your rotate action which causes your action selectors to not move along with the rotated block.

Posted

That's why I was hoping the OP could post the block Tommy :wink:

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...