Jump to content

Coordinates for Polylines


pinkguju

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...