souad2010 Posted November 23, 2012 Posted November 23, 2012 Dear all, I need a lisp which can write a table of my list values in a specified format. http://www.mediafire.com/?ukd1j9kea17sc6n Yours, Quote
Faouweb Posted November 23, 2012 Posted November 23, 2012 Hi, You can use Field to get length of your lines, if you change the length you regen your drawing and it will change in the table. Quote
souad2010 Posted November 23, 2012 Author Posted November 23, 2012 Dear all, I drew and then I made my table manually I wonder if it there's a lisp to draw a table of automatically (I want to creat a table with of+to+length). Yours, Quote
Costinbos77 Posted November 24, 2012 Posted November 24, 2012 Hello, I guess your design refers to designing sewer networks (pipes). I'm working on it. Program currently oversees a polyline and calculated various table elements: partial distance, slope, elevation, ... Table not interact because it is not attached and the program. Looking for something like this? Pipe Project.dwg Quote
souad2010 Posted November 24, 2012 Author Posted November 24, 2012 Hello,I guess your design refers to designing sewer networks (pipes). I'm working on it. Program currently oversees a polyline and calculated various table elements: partial distance, slope, elevation, ... Table not interact because it is not attached and the program. Looking for something like this? how to obtain these results Thank you, Quote
souad2010 Posted November 24, 2012 Author Posted November 24, 2012 Thank you for your reply but am looking for a lisp who can give me (of-to-length) figured in my table . http://www.mediafire.com/?ukd1j9kea17sc6n cordially, Quote
Costinbos77 Posted November 25, 2012 Posted November 25, 2012 Hello, If you only need distances between 'rooms', you need only vertices in a polyline that centruele 'room', from which to extract the coordinates of vertices, and then to write to table distance calculated. If it were a reactor between polyline and table, when you change the polyline, it rewrites the distances in the table. In my table are inserted manually altitudes Z (H r), calculate the difference between the level, slope and then apply these data in the entire table. DO NOT write formulas in this table manually. Formulas differ depending on the position points with Z known. Quote
souad2010 Posted November 26, 2012 Author Posted November 26, 2012 thank you Costinbos77 how to get two digits (distances) after the decimal point??? Cordially Quote
Costinbos77 Posted November 26, 2012 Posted November 26, 2012 (edited) a. In general: if you define x with : ([color=blue]setq[/color] x 123.456789) ; Transform x variable in string ( [color=red]real-to-string [/color]): ;([color=#0000ff]rtos[/color][color=#000000] number [mode] [precision]) [/color] ([color=blue]rtos[/color] x 2 3) ; 3 = nomber of decimal Find all functions and information of AutoLISP in AutoCAD help . b. In dwg table: - with code : http://www.cadtutor.net/forum/showthread.php?74717-Set-properties-of-dwg-table - manual setting : Right-click the cell or range of cells and pick Format - Decimal Number - Decimal - Precision and select 0.00 . Lisp are looking for is not so simple. You must keep in mind several things: 1.if the polyline exist or be created ; 2. if table exist or be created; 3. how and when to make polyline vertices numbering. 4. you need only distance between vertices or thicker line (and more complicated); . . . and so on . Edited November 26, 2012 by Costinbos77 Quote
souad2010 Posted November 26, 2012 Author Posted November 26, 2012 execuse me I do not understand if you can write me the steps of Cordially Quote
Costinbos77 Posted November 27, 2012 Posted November 27, 2012 Hello, as I said, is not so simple lisp program. Its development requires some details and more time available. In this forum you can find ideas and suggestions that you can use in their own applications. Usefulness of this program is small compared to the amount of work to write this program. 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.