- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey folks,
Okay, so I have an Assignment to get Sheet Part Dimensions from DXF Files to Calculate Prices etc.
What I've done so far, I have converted the DXF Files do DWG, for which I have a LISP to insert all DWG Files into one File, so I can work with it easier.
For the next step I would need a LISP that extracts Block names with the maximum Block extents in the following Format:
"BLOCKNAME / DIMENSION1xDIMENSION2". After that I can use the Data Extraction function to insert the Data to Excel, where I can calculate the Area, Weight, and whatever is needed.
I allready got a nice little LISP, that puts out the Block name as Text, and it works perfectly. Maybe someone can modify it, and add the dimensions to it?
(setq bn_txt nil) (defun C:BN( / pt1 blname) (if (null bn_txt) (progn (setvar "TEXTSIZE" (getdist "\Height of text label (uses default style): ")) (setq bn_txt "sizeset") ) ; end progn ) ; end if (princ "\nAdd block name to drawing.") (setq blname (cdr (assoc 2 (entget (car (entsel"\nSelect Block:")))))) (setq pt1 (getpoint"\nSelect center point for block title:")) (command "text" "c" pt1 "" "0" blname) ) (princ "\nType BN to execute.")
Solved! Go to Solution.