Jump to content

Recommended Posts

Posted

Hi
I got the attached code from Mr. Bigal. I'd like to thank him very much. The code calculates the entire length of that layer. What I want is not the whole length in that layer, but just the calculation of the chosen ones. I tried to do it, but it didn't work out. Can you help.
 

area x ht - table.lsp

Posted

A I said in other post the 1st code did pick objects 1 layer at a time. The drawing supplied implys do all in an area.

 

How do you decide what you want to pick ? This should be answered by you. Then code change may be possible. 

 

Admin please move to other post.

Posted (edited)

Mr Bigal
I may not have been able to explain my problem because my English wasn't good. The code you gave me worked very well for me. I just want to calculate a fraction of the project. The code receives the sum of the entire length in that layer. I want him to choose the sum of the lengths in the region I chose. Would you look at the attached project.
 

 

test (7).dwg

Edited by black
Posted

It needs a different approach if you want to pick some plines layer1 then pick layer2, then pick more on layer1 again. It would be  easier to use a block with attributes, area & layer, then sum all of them up. That is start again with code.

 

Some one else may have something that matches what you want. Pick plines add to table if layer exists in table add to totals.

area x ht - table3.lsp

Posted

The problem is understanding how many squares you are picking.

 

Why not pick all ?

 

How many times pick squares same colour ? Add Areas ?

 

Do you want all 1 at a time with total  in table ?

 

I know language is a problem.

 

Post a new sample dwg. Draw lines to table so see what has been picked.

 

Problem is understanding request not answer.

 

Also Autodesk\forums

 

 

 

 

 

 

 

 

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