AutoCAD Map 3D Developer

Reply
*C, Tim
Message 1 of 3 (111 Views)

getvar viewctr

111 Views, 2 Replies
12-20-2001 09:43 PM
I am trying to use viewctr as the "location" point in a circle query with a
radius of 7000. I can type (getvar "viewctr") and it will work in the
dialog boxes, but it will not appear in the external query. How can I get
(getvar "viewctr") to work in an external query? Thank you.
Tim
Contributor
gerardog
Posts: 12
Registered: ‎12-26-2001
Message 2 of 3 (111 Views)

Re: getvar viewctr

12-26-2001 03:15 AM in reply to: *C, Tim
Hi! :smileyhappy:
Try to use something like the following:
(ade_qrydefine (list "" "" "" "Location"
(list "circle" "crossing"
(getvar "viewctr")
(getvar "viewsize")
)
"")
)

This will create a location condition with a circle whose center is the current view center, and the radius is the height of the view.
Regards,
gg.
*C, Tim
Message 3 of 3 (111 Views)

Re:

12-26-2001 09:48 PM in reply to: *C, Tim
Thank you.

Using the "list" is what I was missing for using
variables.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi!
:smileyhappy:
Try to use something like the following:
(ade_qrydefine (list "" ""
"" "Location"
   (list "circle" "crossing"

       (getvar "viewctr")

       (getvar "viewsize")

   )
   "")
)

This will create a location condition with a circle whose center is the
current view center, and the radius is the height of the view.
Regards,

gg.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community