black Posted December 8, 2019 Posted December 8, 2019 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 Quote
BIGAL Posted December 8, 2019 Posted December 8, 2019 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. Quote
black Posted December 9, 2019 Author Posted December 9, 2019 (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 December 9, 2019 by black Quote
BIGAL Posted December 9, 2019 Posted December 9, 2019 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 Quote
black Posted December 9, 2019 Author Posted December 9, 2019 I want to make the selection like the attached jpg. I want the painting on Dwg to come up. test (7).dwg Quote
BIGAL Posted December 10, 2019 Posted December 10, 2019 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 Quote
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.