Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
In the "Copy block x time between 2 points (with orientation) (CM2P adaptation)" Topic I discover I can use this fontion (to have the blocks I use alway align with :
(setq blk_ent (entget (entlast))) (entmod (subst (cons 50 rad)(assoc 50 blk_ent)blk_ent)) (setq e (entlast))
I tried to integrate it In the CBPRM Lisp but I have an error "bad DXF group". Here is the lisp:
(defun C:CBPRMB (/ e p); = CopyBase and Paste/Rotate Multiple (if (and (setq e (car (entsel "\Object to Paste/Rotate Multiple times: "))) (setq p (cdr (assoc 10 (entget e)))) ); and (progn ; then (command "_.copybase" p e "") (setq blk_ent (entget (entlast))) (entmod (subst (cons 50 rad)(assoc 50 blk_ent)blk_ent)) (setq e (entlast)) (while (setq p (getpoint "\nPaste base point or <exit>: ")) (command "_.pasteclip" p "_.rotate" "_last" "" p pause ); command ); while ); progn ); if (princ) )
Can you help me for that?
Thanks.
ML
Solved! Go to Solution.