pinkguju Posted January 24, 2012 Share Posted January 24, 2012 The attached lisp routine does the following: 1. Scans the drawing for all blocks starting with "BSLINK_ZONE*" a BSLINK_ZONE block contains the following: Department name for a closed polyline object Its square footage area 2. Explodes each BSLINK_ZONE block 3. Stores the x,y coordinate for the endpoints of each line 4. Outputs a CSV file that is formated like the following: Department name | square footage | X coordinate | Y coordinate Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) How do i get the lisp routine to output a CSV file that contains the minimun X and minimum Y coordinate for the Department? Example of what is really needed: Department name | minimum X coordinate | minimum Y coordinate All help is appreciated! getzonedata_01_24_2012.TXT Quote Link to comment Share on other sites More sharing options...
BIGAL Posted January 25, 2012 Share Posted January 25, 2012 Simple way just read the csv file back in and find the min X & min Y or do as part of the output to CSV if new > oldx etc Quote Link to comment Share on other sites More sharing options...
pinkguju Posted January 25, 2012 Author Share Posted January 25, 2012 the file extension is actually .dat and can be opened with notepad. Ideally we would want the original output to only have the min x, min y. we want to limit human intervention when deciding the mins Quote Link to comment Share on other sites More sharing options...
stevesfr Posted January 25, 2012 Share Posted January 25, 2012 The attached lisp routine does the following:1. Scans the drawing for all blocks starting with "BSLINK_ZONE*" a BSLINK_ZONE block contains the following: Department name for a closed polyline object Its square footage area 2. Explodes each BSLINK_ZONE block 3. Stores the x,y coordinate for the endpoints of each line 4. Outputs a CSV file that is formated like the following: Department name | square footage | X coordinate | Y coordinate Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) Fixed ID # | X coordinate (in inches) | Y coordinate (in inches) How do i get the lisp routine to output a CSV file that contains the minimun X and minimum Y coordinate for the Department? Example of what is really needed: Department name | minimum X coordinate | minimum Y coordinate All help is appreciated! If you would post one sample block, some of us will try and see what we can do to help. Can't guess the block tag names to assume for creation of same. Steve Quote Link to comment Share on other sites More sharing options...
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.