77marco77
Guest
お問い合わせ
このコードを見つけました。
誰:
何をすべきか、つまり、タグの価格で属性を追加し、項目メッセージ#とコンテンツ100を1つ以上選択されたブロックに入力します。 属性は、半分の中央正当でブロック(そして多くの場合、単に設計上)のインサートの点でインサートされます。
理解したいもの(変更できるもの)は:
このコードを見つけました。
HTML:
(defun c:add$ ( / ss i blk blks def attobj))
(と)
(setq ss (ssget '(0 . "insert")))))))))
(setq i (sslength ss)))))
(間 (> i 0)
(setq blk (cdr (assoc 2 (entget (ssname ss (setq i (1- i))))))))))))))))))))))
(例えば(vl-position blk blks))) (setq blks (cons blk blks))))))
)
)
(ビーチブランク)
(setq def (vla-item) (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))))) 空白)))
(setq attobj) (setq attobj (setq attobj) (setq attobj) (setq attobj (setq attobj) (setq attobj (setq attobj)) (setq attobj (setq attobj) (setq attobj) (setq attobj (setq attobj) (setq (setq attobj))
(vla-addattribute def)
8月8日
acattributemodeロックポジション
「エントリー番号」
(vlax-3d-point 72 84)
"price\u+0020" は、
「100」
)
)
(vlax-put attobj 'alignment acalignmentmiddle) ;;; 4
(コマンド "_.attsync" "_n" 空白)
)
(プライアンス)
)
(vl-load-com) (プロキシ)
Add new attribute to multiple existing blocks
Hi there Im a very beginner at using lisp, so help would come in handy. Couldnt find anything on the web for this precise issue. I have a dwg containing hundreds of blocks, each with the same attribute tags and different values (eg Name, Model, Size..). This is my library, which needs to be modif...
www.cadtutor.net
理解したいもの(変更できるもの)は:
- 正当化: 中央、左半分、右半分の中央に書き込む場所を知りたい
- 位置: (0.0) は、たとえば (0,-10) 設計ユニットに属性を追加したいブロックのインサートポイントであると言う