# auto area calculation table

## Recommended Posts

Yeah , I know what you mean with the messy look... tried to ease the pain by placing the texts on the vertices themselves and that looks a little better. I can easily remove any duplicates but somehow the leftovers are always place on the side I don't want. And I assume triangles and squares can have all kind of rotations... so the easy way is to place them all just above or on the vertices (for now)

Other problem , excuse me , challenge I have is when I have a triangle like the bottom one in your example , which has no 90 degree angle , to place the height on the line from the top corner perpendicular to the bottom vertice. By hand it's easy but has been like 30 years ago when I had any math at school. I have 3 points, and I can work out all angles and vertices lengths so (on paper) its easy to work out the two angles that 'split' the top corner and of course I know the length for the height after applying lee's bounding box. But I'd rather have a solution / formula that I can feed the 3 points and that can work out the 4th point , for any triangle and for any rotation...

the abc thing should be easy enough to do (like excel A,B..Z,AA,AB...?). Will come back on that later.

with letters...

##### Share on other sites

nice

i want both option to choose form abcd or 1234

thanks

very well ...

##### Share on other sites

WELL DONE

THANKS FOR ALL U R HELP

IF ANY CHANG IN FEATURE I ASK HEAR.

THANKS.

##### Share on other sites
Posted (edited)

You're welcome. Think I've nailed the triangle thingy (finding location to put the height text) : LM:ProjectPointToLine. Have tested it and it seems to work. Just need to integrate it with your appie. Will update later  ...

Edited by rlx
improved text placement non rec. triangles

##### Share on other sites

yes u nailed it

u should try same for that arc shape also .

something about length text placement for only 2 length and inside of that shape if this can happen it will save time .

thanks

##### Share on other sites
Posted (edited)

Allways dangerous to post a not fully tested routine ... but here ya go...

still a little bug in getting area right for square with a broken vertex in it , as in your sample dwg , but selecting 'Show real area' should take care of that

gr. RLX

Edited by rlx
tiny update routine plus a few nice test functions at the end

##### Share on other sites
Posted (edited)

it perfect now but u miss numbering option it only show abcd now.

##### Share on other sites

it perfect now but u miss numbering option it only show abcd now.

have you tried to disable toggle  'Use ascii labels'?

##### Share on other sites
1 hour ago, rlx said:

have you tried to disable toggle  'Use ascii labels'?

yes it ok . thanks man

##### Share on other sites

hi can we put current dim style  instead of dim tex in RLXDIMPOLYLINE program.

##### Share on other sites

hi can we put current dim style  instead of dim tex in RLXDIMPOLYLINE program.

you want text in the style of current dim style or actual dimensions?

##### Share on other sites

current dim style

##### Share on other sites

guess changing the current text style to the current dimtext style would be enough? Testable by using

` (setvar "TEXTSTYLE" (getvar "DIMTXSTY"))`

before running program. If not , will look at it later have to finish something right now...

##### Share on other sites

those tex need to be dimension

##### Share on other sites

ok actual dimensions .. definitely have to look into that later because that is going to take some significant changes in program...

##### Share on other sites
Posted (edited)

no worries take u r time

put in option same as text ( inside/ outside/ on polyline )

##### Share on other sites

haven't done much testing but here ya go...

##### Share on other sites

yes it working properly thanks one's again u done a grate job...

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

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.