Jump to content

Recommended Posts

Posted (edited)

Hello Everyone,

 

I am trying to column "A" where text "TP" is just the place to circle should fall. And the remaining other "code" should fall point.

 

Thank you in advance.

Edited by sanju2323
Posted

Just look up how to use concatenate and IF in excel, just copy one column say "J" straight to autocad and all done.

 

There are numerous examples here, serach excel.

Posted

BIGAL,

 

Thank you for the suggestion, I know it's possible from using concatenate and if formula, but I want to directly plot circle using vba. I do not want any extra column.

 

sanju

Posted

Thats the easy way. Ok get a copy of getexel.lsp this is a good example of how to do Autocad excel, you can read and write cells then do what you want you should be able to convert to VBA but why bother, check the samples.

Screen Shot 03-16-16 at 01.25 PM.PNG

Posted

BIGAL,

 

Thank you very much.

 

sanju

Posted

A second way maybe easier export as a CSV and just read line by line use a IF or Cond to check the "A" cloumn code and use the x&y co-ords pretty easy. In lisp or vba.

 

(cond
((= type "TP")(do_circle))
((= type "CP")(do_point))
((= type "FE")(do_INS_FE))
)

Posted

BIGAL,

 

yes this code is very useful, Thank so much

 

sanju

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