Hi !
(First thing, sorry for my english, french is my mother tongue)
I'd like to know if it's possible to redefine drawing area with .net
I explain my problem. I work with lasers (my compagny is building laser machine) and i work with a laser that can only move from -40,-40 to 40,40 (centimeters).
Can i force autocad to draw only when i'm between those coordinates (with my vb.net addon) ?
Thanks for help
Adri Dicri
Solved! Go to Solution.
Solved by StephenPreston. Go to Solution.
Your English is pretty good, actually - no worries there 🙂
Might be possible, but the sheer number of commands available through AutoCAD would make it difficult. It might be easier to automatically create a visual boundary guide for the user, along with a validation function to find objects outside the boundary. That way they can make use of the exterior area as scrap drawing space and the overhead of the validation function can be delayed until checking the finished drawing. If you need to process large numbers of drawings it might be an idea to design it to work on a database rather than an active drawing, so you can quickly validate entire folders of files instead of open/validate/close.
You want to stop the user drawing outside the drawing limits?. That's achieved at the commandline using the LIMITS command (which in turn sets the LIMMIN, LIMMAX and LIMCHECK sysvars). In .NET these are properties of the Database class:
Database:Limmin
Database.Limmax
Database.Limcheck