Jump to content

About Level and Offset of Polyline in excel


Recommended Posts

Posted

Is there any method so that we can get level and offset of a polyine?

 

Let us assume we have drawn a polyine in zigzag way. A level is provided at one point and we need to find the offset of polyline point and the points level and then export it to excel.

 

Please kindly help.

Capture.JPG

Posted

Yes is the answer as the pline has 2d points you know Y values so can work out all points including Z then send to excel.

 

I do direct to excel others do CSV.

 

Here is pline points as a start. 

 

(setq plent (entsel "\nPick rectang"))
(if plent (setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (car plent))))))
(princ co-ord)

On holidays so limited time may  be later or some one else will jump in.

 

Excel defuns you can use to open Excel and put cell values.

Alan Excel library.lsp

  • Like 1
Posted (edited)

Thank you very much. But the file after loading shows an error

(Alan Excel library.lsp successfully loaded.
Command:
bad argument type: VLA-OBJECT nil
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.)

 

Edited by Rabindra Bhatta
Posted

I have a level mentioned and have to export the distance of points in polyline with its level to excel. No any coordinates are required. 

Please kindly help with the problem.

Posted

The Alan excel.lsp is not a program that you load rather it contains multiple functions that you use in your own code like Putcell. I have limited time at moment someone else may jump in.

 

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...