Jump to content

array and layers


akram85ing

Recommended Posts

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...