Jump to content

calculate the number of rows and columns in the array !!


Recommended Posts

Posted

hii !!!

is there any way to calculate the number of rows and column of an array ????

thank you ^^

Posted

Your question is very vague, give some more info about waht you are trying to 'array'

Posted

Could the OP be interested in finding out the number of rows and columns of an existing array? Maybe he got a drawing from someone else with a very large array of columns, or trees, or floor tiles, etc.

Posted

Are you referring to the new array entities in ACAD2012?

Posted

Select/highlight one row, look in the properties pane to see how many objects are selected. Repeat for column. This assumes a block was used. Otherwise you would need to divide the property pane object number display by the number of objects in one single element.

Posted

Use Select or any random command that allows for multiple selections.

 

eg.

Command:
SELECT
Select objects: Specify opposite corner: 6 found

Posted

Assuming all the arrayed objects were on one layer, freeze all other layers, window the objects then click on Properties. At the top there should be a count.

Posted

thank you

yes i have an array in my drawing and i want to calculate the number of column and rows with autolisp so that i can loop in it ?! how can i do that

Posted

Loop in it? You want the lisp routine to repeat right?

 

None of the suggestions above meet your needs? This must be done with a lisp routine?

Posted

yes ReMark exactly i want to repeat an instruction:

(while (number of column) do something

Posted

Maybe !!! :unsure:

 

(setq ss (ssget ))
(repeat (sslength ss)
.......
.......

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...