pmcreme Posted April 28, 2011 Posted April 28, 2011 I need to estimate wire lengths running from various blocks to a common point. It would be helpful to have the x and y distances instead of the straight line distance and it would also be helpful to be able to select multiple blocks and have their respective lengths summed as well. i can create a dynamic block with a line stretch action to specify the start and end of the measurement, but i think i would need some LISP code to get what i'm looking for. any help? EDIT: Using AutoCAD 2009 Quote
BIGAL Posted April 29, 2011 Posted April 29, 2011 If the connecting lines are on 1 layer then its easy theres a few different ways search here "Total" theres lisps etc that will add up based on a search criteria say layer Quote
pmcreme Posted April 29, 2011 Author Posted April 29, 2011 that's the method i'm using now, drawing lines and totaling the lengths. what i'd like to do is place a block, drag a line to the central point and be able to total the x and y distance of that block (and several hundred others) to the central point. Quote
BIGAL Posted April 29, 2011 Posted April 29, 2011 You missed my point it totals all lines in one go also found this _DATAEXTRACTION may be worth having a look at. Quote
pmcreme Posted April 29, 2011 Author Posted April 29, 2011 no, i think i understand what youre talking about. i have a lisp routine that gives the total length of all the selected objects / lines. what im hoping i can work out is a way that i wont have to draw the individual lines (representing wires) because i have to do it several hundred time. Quote
qball Posted May 2, 2011 Posted May 2, 2011 You're saying that you have a dynamic block with straight line wires, but you're redrawing over the block with individual lines? Is that right? Quote
pmcreme Posted May 2, 2011 Author Posted May 2, 2011 currently, i'm drawing the wires individually from each block to the central point and using a LISP routine to total the lengths. i was suggesting that i could create the blocks as dynamic blocks with the stretchable straight line, hoping that i could place the block and specify where the central point would be and then be able to collect the lengths without having the draw the wires recently ive been playing with the dynamic blocks and collecting data via an extraction. i might have better luck using excel to do the wire length calculations Quote
qball Posted May 2, 2011 Posted May 2, 2011 I think as long as the lines are straight, no jogs, then the dynamic block with a polar stretch or stretch would work. Then you can probably use the aforementioned Data Extraction for the Distance Parameters. Quote
BIGAL Posted May 3, 2011 Posted May 3, 2011 Is the answer insert blocks forget dynamic, pick a point total distance from pt to all blocks no lines drawn yes that could be done pretty easy if insert point of block is the controlling joining point. pick point, pick a block, total answer displayed. 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.