View Full Version : Get dimensions for take off sheets
samohtwerdna
05-08-2006, 03:10 PM
This has probably been asked a dosen times in some variation - but could anyone help me build a function that grabs the dimensions from a poly-line and displays them in a row like:
24 + 18 + 18+ 30 + 21...
and then total's the numbers at the end. Also I would like to round each dimension up to the nearest number divisible by 6 - so 14.25 becomes 18 and so forth.
Any ideas??
Thanks for the help!
Eddie
08-08-2006, 11:52 AM
Can you clarify this a little more .. dimensions from a poly-line ???
Are you wanting to get the dimension text and total these, displaying as text at one end of the dimension run ?
samohtwerdna
08-08-2006, 05:10 PM
Sorry about that,
I am wanting to create a form that has several blank labels (or textboxes) in a left column and then a corresponding text box in a right column for the "Totals" - Which I have already set up. I have a button at the bottom that says "get Take off" - my intention is that when the user selects this button he is promted to select a poly-line - when he selects the poly-line the left column label fills out the dim's between points on the selected poly-line - with the rounding I mentioned. In other words if a three point poly-line was selected that started at 0,0,0 and had its second point at 0,17.125,0 and its third point at 22,17.125,0 then the label would read ( 21 + 30 ) and the right column Total would read ( 52 ) "rounded again"
Then I would like to export the label and text info to either a txt document or an excel sheet - but I'll worry about that latter.
So - need help promting the user to select a poly-line - then retrieving the poly-line info. I think I would use ThisDrawing.Utility (.GetEntity??)
Any Ideas?
Eddie
07-09-2006, 11:37 AM
Can you post or email me what you have so far ?
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.