Jump to content

urgent lisp required to make table - help


Recommended Posts

Posted

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.

Field.png

Posted

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,

Posted

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

Posted
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,

Posted

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.

Posted

thank you Costinbos77

how to get two digits (distances) after the decimal point???

Cordially

Posted (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 by Costinbos77
Posted

execuse me

I do not understand

if you can write me the steps of

Cordially

Posted

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.

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