Jump to content

Recommended Posts

Posted

hi friends,

i have doubts about querying the drawings through lisp.can anyone help me 2 proceed.

thanks in advance

 

regards

vivek

Guest Alan Cullen
Posted

Well vivekgrs,

 

That depends a lot on just what you are trying to query.

 

Would you care to eleborate a bit further?

Posted

thanks for ur immediate reply. i want 2 change the layer of blocks into blockname layer. i will explain u what i had done in autodesk map manually. first i attach the drawings, then click the current query and select define query. in that ,select location all and draw in query mode,after that select alter property then select layer. click expression & select blockname. then execute query. this things i want 2 write in lisp

Posted
(defun c:test (/)
 (and (ade_qryclear)
      (ade_qrydefine (list "" "" "" "location" (list "all") ""))
      (ade_qrysettype "draw")
      (ade_qrysetaltprop t)
      (ade_altpdefine "layer" ".blockname")
      (ade_qryexecute)
 )
)

Posted

ade_ - is it SQL extension libruary for AutoCAD Map? It's seems for AutoCAD Map only...

Posted
It's seems for AutoCAD Map only...

that's true

ADE stands for AutoCAD Data Extension

Posted

hi vovka,

thanks for ur great effort. its really helped me alot.

 

regards

vivek

  • 8 years later...
Posted (edited)

hello, someone could help me?

why this doesnt work?

 

(setq VAL (getstring "\nNumero de Cable:"))

(ade_qryclear)
(ade_qrysettype "draw")
(ade_qrydefine '("" "" "" "Data"  ("objdata" "Cable.NUM" "=" "VAL")""))
(ade_qryexecute)

Edited by SLW210
added code tags

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