![]() Run through all layers, find lines and polylines on each layer and The geometry data is stored in the LineSeg3d class object that can be accessed through the DbLine.Line property and has the Length property to get the length: ![]() Surely, we could calculate the length by the points coordinates, however it is more efficient to access the line’s geometric representation. To represent a line within the drawing database, the DbLine class from the namespace is used.Ī DbLine object has properties that store the first and second points of the line but does not contain the length information. The line is a standard primitive like circle, text, spline etc. Calculating the length of lines selected by userīefore we set to work, we need to know what a line in MultiCAD.NET is. As an example we will calculate the sum of pipe lengths in the water supply scheme with two options to select elements for calculating: user selection and selection by the object filter. One of the frequently asked questions to our technical support is “How to calculate the sum of line lengths (pipeline sections, elements of wire diagram etc.) in a drawing?” There are many ways to solve this problem, and today we will consider an implementation of the MultiCAD.NET application that sums line lengths in nanoCAD, AutoCAD and ZWCAD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |