@Anonymous wrote:
So you are using AutoCAD Map?
Yes. But there's nothing specific related to Map that I'm trying to use.
I know nothing about any Map specific viewing commands. What is your goal? Why are you tracking the scale, ie."What I really want to do though, is track the scale of view inside of the map window, Zoom and pan. . . . I want to know whaen the user does a map navigation step, zoom/pan, now which reactor is that . . .?
Model Space. I want to know when the user changes it, zoom in/out, pans, etc. and run a routine (That I've had around for literally decades) that does some automated importing of Aerial images and other DWG inserts automatically based on location. Yes I know this is what FDO is supposed to do, but my importers work for all AutoCAD versions (that have a LISP Interpreter.) My import tools also do a bunch of autodiscovery of services within our network for importing into the AutoCAD session.
What is a map window? Is it a viewport?
Yes, or model space actually.
What is the point of tracking view changes? Perhaps, I can help more if I understand the rationale. Reactors can get cumbersome and shouldn't be continuously running without good reason.
I've tried getting reactors to work for this a number of times over the years, but I've always ended up giving up on it. I basically want to be able to mimic a slippy map capabilitiy inside of the AutoCAD session, with some number of layers being imported automatically for the defined view. Think super duper Google Maps. I have over 255+ layers in my import utility right now as an example. Using FDO to manage that number of resources has not been a effecient use of effort in the past, and it only works in MAP/CIVIL, and I need to be able to support other City vendors as well that might just have regular AutoCAD. Your point about continuously running is not falling on deaf ears either, I understand this as well, and always intended on setting up a on/off button for this autoimport capability. There is also the issue of not cleaning up the older imports automatically, as they can come in at different resolutions while the user is zooming/panning, which I'll need to address after getting the "model view" tracking capability functional. We use the importer currently as a reference tool for design as well as in our mapping section for mapbook generation tasks.
I'm thinking about how I might package my importer for Open Sourcing, I've thought about if for a while (years) actually, and we've recently decided to reconfigure the importer to use WMS services as a first step in that direction, but I'm starting to ramble here, anyway, I want to be able to track the 2D location, along with scale of view in Model Space.
I would appreciate any help you can give to the project. Thank you very much for your offer.
bobb