.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Define drawing area in .net

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
AdriDicri
666 Views, 3 Replies

Define drawing area in .net

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

3 REPLIES 3
Message 2 of 4
dgorsman
in reply to: AdriDicri

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.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 3 of 4
StephenPreston
in reply to: AdriDicri

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

 

Cheers,

Stephen Preston
Autodesk Developer Network
Message 4 of 4
AdriDicri
in reply to: AdriDicri

Thanks for help !

 

It work perfectly.

 

Adri Dicri

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost