akram85ing Posted April 22, 2009 Share Posted April 22, 2009 i work with Autocad 2004 with a lisp routin or a vba macro how we can do an array (for example 5 raws 5 columns) but the pair columns ( columns 2and 4) on a layer and impair columns ( columns 1, 3 and 5) on another layer then we move down or up the content of pair columns with a distance d thank you Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 22, 2009 Share Posted April 22, 2009 You can collect the entities from an array using this: (credit to ASMI): [b][color=RED]([/color][/b][b][color=BLUE]defun[/color][/b] Ent_List_to_End[b][color=RED]([/color][/b]ent / a[b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]reverse[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]if[/color][/b][b][color=RED]([/color][/b][b][color=BLUE]setq[/color][/b] a[b][color=RED]([/color][/b][b][color=BLUE]entnext[/color][/b] ent[b][color=RED])[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]cons[/color][/b] ent[b][color=RED]([/color][/b]Ent_List_to_End a[b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.