Message 1 of 11
Entmod question
Not applicable
10-18-2016
12:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a bunch of blocks, in which there is 1 line that has the linetype 'dashed'.
I have a routine that searches these blocks and creates a list of line entities which are dashed.
I then use foreach to go through this list, I get dxf values 10 and 11 then add 5 to the y value of each. This works fine on 1 block but is I choose more than 1 then they line is moved 5+5 in the second then 5+10 in the third 5+15 in the fourth.......
The routine is nothing special
Something like
(foreach x lst
(setq enlist (entget x))>>>subst and entmod dxf 10>>> subst and entmod dxf 11
lst is a list of line entities to move up 5mm
I have a routine that searches these blocks and creates a list of line entities which are dashed.
I then use foreach to go through this list, I get dxf values 10 and 11 then add 5 to the y value of each. This works fine on 1 block but is I choose more than 1 then they line is moved 5+5 in the second then 5+10 in the third 5+15 in the fourth.......
The routine is nothing special
Something like
(foreach x lst
(setq enlist (entget x))>>>subst and entmod dxf 10>>> subst and entmod dxf 11
lst is a list of line entities to move up 5mm