vivekgrs Posted April 18, 2008 Posted April 18, 2008 hi friends, i have doubts about querying the drawings through lisp.can anyone help me 2 proceed. thanks in advance regards vivek Quote
Guest Alan Cullen Posted April 18, 2008 Posted April 18, 2008 Well vivekgrs, That depends a lot on just what you are trying to query. Would you care to eleborate a bit further? Quote
vivekgrs Posted April 18, 2008 Author Posted April 18, 2008 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 Quote
VovKa Posted April 18, 2008 Posted April 18, 2008 (defun c:test (/) (and (ade_qryclear) (ade_qrydefine (list "" "" "" "location" (list "all") "")) (ade_qrysettype "draw") (ade_qrysetaltprop t) (ade_altpdefine "layer" ".blockname") (ade_qryexecute) ) ) Quote
ASMI Posted April 18, 2008 Posted April 18, 2008 ade_ - is it SQL extension libruary for AutoCAD Map? It's seems for AutoCAD Map only... Quote
VovKa Posted April 18, 2008 Posted April 18, 2008 It's seems for AutoCAD Map only... that's true ADE stands for AutoCAD Data Extension Quote
vivekgrs Posted April 19, 2008 Author Posted April 19, 2008 hi vovka, thanks for ur great effort. its really helped me alot. regards vivek Quote
zalogsa Posted August 3, 2016 Posted August 3, 2016 (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 August 3, 2016 by SLW210 added code tags Quote
SLW210 Posted August 3, 2016 Posted August 3, 2016 Please read the Code Posting Guidelines and use Code Tags. I fixed it for you this time. [noparse] Your Code Here [/noparse] = Your Code Here Quote
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.