dynamo53 Posted December 8, 2017 Share Posted December 8, 2017 Good Morning. i have a question and hope that somebody know a solution. Example: I create 3 different layer. Layer A Layer B Layer C Layer C includes for example overhead lines (3D) and now i want to know how many Pixels are in Layer C. Later i want to compare the Pixels from Layer C with the total Pixels in the drawing. Does anybody understand my problem and can help me? Thanks a lot and a nice day to everybody. Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 8, 2017 Share Posted December 8, 2017 I don't. Why would it be necessary to know the number of pixels in a layer and in an entire drawing? What is it that you are trying to accomplish? BTW...there are pixel-per-inch calculators online but they tend to be used by people who want to measure the resolution of a screen. Quote Link to comment Share on other sites More sharing options...
dynamo53 Posted December 8, 2017 Author Share Posted December 8, 2017 @ReMark; Thank you for your answer. At the end i want to make a visibility consideration of different overhead line - configurations. I create different parts of cities with tramways and catenary systems. Then i vary different types of catenary systems and want to calculate the visibility (count the pixels because only the caternary system change, the background doesn´t). So i can appraise the different configurations. I hope you understand. My englisch isnt that good. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted December 8, 2017 Share Posted December 8, 2017 Maybe you can use volume instead of pixel? Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 8, 2017 Share Posted December 8, 2017 I don't know of any way, using AutoCAD, to calculate the number of pixels in a layer. Quote Link to comment Share on other sites More sharing options...
dynamo53 Posted December 8, 2017 Author Share Posted December 8, 2017 @ReMark: No Problem, thank you @SLW210: This is also possible. Each component have its own volumina. I think its no Problem to calculate the volumina of every component. Maybe it will be a good Idea to create a script which calculate the volumina of layer "catenary system". But i´m actually not good in things like this. Learned AutoCad just 3 Monaths ago. Do you have an good idea to calculate the volumina of each components in one layer? Quote Link to comment Share on other sites More sharing options...
f700es Posted December 8, 2017 Share Posted December 8, 2017 No pixels in AutoCAD, it's all vector. You can type massprop hit enter and then select an item and see what it says about it. Quote Link to comment Share on other sites More sharing options...
steven-g Posted December 8, 2017 Share Posted December 8, 2017 Could you post a drawing file (or part of drawing), so we can see what you are refering to as pixels. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted December 8, 2017 Share Posted December 8, 2017 Do you mean pline width ? You can have very small difference 2.00 2.01 2.02 etc Another that may be useful is Thckness you can assign a different value to objects, but they will all print same width but you can compare them. Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 9, 2017 Share Posted December 9, 2017 In a 3D model you would be talking about mass properties as mentioned previously by steven-g. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted December 11, 2017 Share Posted December 11, 2017 You will most likely need a LISP or .NET program to calculate the volume by layers then add them and subtract them. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted December 11, 2017 Share Posted December 11, 2017 I have moved your thread to the AutoLISP, Visual LISP & DCL Forum, perhaps some of the LISP experts can help. Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted December 11, 2017 Share Posted December 11, 2017 Looking at pixels makes no sense. Calculating the total length of all curves (lines, polylines, arcs, 3d polylines etc.) on a layer would. 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.