- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, Friends,
There are dynamic blocks with the only rotation function in the drawing, see sample in the attachment.
The task is to make them static and keep angled as they are.
So steps probably should be like these
1. to get the list of rotation angles of blocks XX selecting one of them. Selection is needed cause there can be a range of different blocks.
I'm not sure but may be by kind of this procedure
(setq obj (car (vl-remove-if-not '(lambda (x) (= (vla-get-propertyname x) "_Angle1"))
(vlax-safearray->list(vlax-variant-value (vla-getdynamicblockproperties obj)))))
2. to edit the block XX by killing dynamic functions f.e. by this list of commands _bedit;ai_selall;_copybase;0;0;delete;_pasteclip;0;_bclose;;
3. to rotate each of XX blocks by the angle taken in p. 1
this is the most hard part I think
Does it look possible ? Do you have kind of ready lisp or suggestions ?
Solved! Go to Solution.