Post on 14-Oct-2015
description
5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
Translate this page Spanish
MicrosoftTranslator
K E A N W A L M S L E Y
About the Author
Kean on Google+
J A N U A R Y 2 0 1 4
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
P O S T I N D E X
R E V E R S E I N D E X
Using a modal .NET dialog to display AutoCAD object properties| Main|
Applying a gradient fill to an AutoCAD hatch using .NET
June 29, 2007
Using a modeless .NET dialog to display AutoCAD objectproperties
In this previous postwe looked at creating a simple modal dialog and using it to
display object properties. This post looks at the structural changes you need to
make to your application for the same dialog to be used modelessly. In a later
post we'll look at the benefits you get from leveraging the Palette system formodeless interaction inside AutoCAD.
Firstly, let's think about the interaction paradigm needed by a modeless dialog. A
few things come to mind:
There is no longer a need to hide and show the dialog around selection
Rather than asking the user to select an entity, it's neater to respond to
standard selection events
We no longer need a "browse" button
We now need to be more careful about document access
Our command automatically locked the document (and had
sole access) in the modal example
We should now lock it "manually" when we access it
So we can already simplify our dialog class - here's some modified C# code, with
the browse button removed and document-locking in place:
usi ng Autodesk. AutoCAD. Appl i cati onSer vi ces;
usi ng Aut odesk. AutoCAD. Dat abaseServi ces;
usi ng Autodesk. AutoCAD. Edi t orI nput;
usi ng Aut odesk. AutoCAD. Runti me;
usi ng Syst em;
usi ng Syst em. Col l ecti ons. Generi c;
usi ng Syst em. Component Model ;
usi ng Syst em. Data;
usi ng Syst em. Dr awi ng;usi ng Syst em. Text;
usi ng Syst em. Wi ndows. For ms;
namespace Cust omDi al ogs
{
publ i c part i al cl ass TypeVi ewerFor m : Form
{
publ i c TypeVi ewer For m( )
{
I ni t i al i zeComponent ( ) ;
}
1 0 R A N D O MP O S T S
F E E D / S H A R
Subscribe via
ShareThis
675Like
S E A R C H
Under the hood:
AutoCADs JavaSc
Does anyone out t
use unnamed, emp
emptyish) groups i
AutoCAD?
Creating a layer gr
inside AutoCAD us
.NET
Hosting our ASP.N
Web API project o
Windows Azure Pa
Linking Circles, Pa
Using .NET events
relate AutoCAD ge
Januarys Plugin of
Month live on Auto
Labs: DrawOrder B
Layer for AutoCAD
Using AJAX to gen
pages hosting Free
views
The Evolution of A
University
3D printing Star W
weaponry using an
AutoCAD model
Wolfram|Alpha a
computational know
engine in the cloud
C A T E G O R I E
3D printing 3ds Ma
AJAX Android Ann
scaling Arduino
ASP.NET Async A
Augmented Reality
AutoCAD
Spanish
http://www.bing.com/translator?ref=MSTWidgethttp://www.bing.com/translator?ref=MSTWidgethttp://www.bing.com/translator?ref=MSTWidgethttp://through-the-interface.typepad.com/through_the_interface/about-the-author.htmlhttp://through-the-interface.typepad.com/through_the_interface/about-the-author.htmlhttps://plus.google.com/111739174732269215736?rel=authorhttp://through-the-interface.typepad.com/through_the_interface/2014/01/happy-2014.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/attack-of-the-robots.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/au-2013-classes-available-on-demand.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/forcing-autocad-object-snapping-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/posts.htmlhttp://through-the-interface.typepad.com/through_the_interface/reverse.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/http://through-the-interface.typepad.com/through_the_interface/2007/07/applying-a-grad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/index.rdfhttp://void%280%29/http://through-the-interface.typepad.com/through_the_interface/2013/04/under-the-hood-autocads-javascript-api.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/04/under-the-hood-autocads-javascript-api.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2008/09/creating-a-laye.htmlhttp://through-the-interface.typepad.com/through_the_interface/2008/09/creating-a-laye.htmlhttp://through-the-interface.typepad.com/through_the_interface/2008/09/creating-a-laye.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/04/hosting-our-aspnet-web-api-project-on-windows-azure-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/04/hosting-our-aspnet-web-api-project-on-windows-azure-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/04/hosting-our-aspnet-web-api-project-on-windows-azure-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/11/using-client-si.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/11/using-client-si.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/11/using-client-si.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/12/the-evolution-of-autodesk-university.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/12/the-evolution-of-autodesk-university.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/02/3d-printing-star-wars-weaponry-from-autocad-models.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/02/3d-printing-star-wars-weaponry-from-autocad-models.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/02/3d-printing-star-wars-weaponry-from-autocad-models.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/05/wolframalpha-a-computational-knowledge-engine-in-the-cloud.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/05/wolframalpha-a-computational-knowledge-engine-in-the-cloud.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/05/wolframalpha-a-computational-knowledge-engine-in-the-cloud.htmlhttp://through-the-interface.typepad.com/through_the_interface/3d-printing/http://through-the-interface.typepad.com/through_the_interface/3ds-max/http://through-the-interface.typepad.com/through_the_interface/ajax/http://through-the-interface.typepad.com/through_the_interface/android/http://through-the-interface.typepad.com/through_the_interface/annotation_scaling/http://through-the-interface.typepad.com/through_the_interface/annotation_scaling/http://through-the-interface.typepad.com/through_the_interface/arduino/http://through-the-interface.typepad.com/through_the_interface/aspnet/http://through-the-interface.typepad.com/through_the_interface/async/http://through-the-interface.typepad.com/through_the_interface/au/http://through-the-interface.typepad.com/through_the_interface/augmented-reality/http://through-the-interface.typepad.com/through_the_interface/autocad/http://through-the-interface.typepad.com/through_the_interface/autocad/http://through-the-interface.typepad.com/through_the_interface/augmented-reality/http://through-the-interface.typepad.com/through_the_interface/au/http://through-the-interface.typepad.com/through_the_interface/async/http://through-the-interface.typepad.com/through_the_interface/aspnet/http://through-the-interface.typepad.com/through_the_interface/arduino/http://through-the-interface.typepad.com/through_the_interface/annotation_scaling/http://through-the-interface.typepad.com/through_the_interface/annotation_scaling/http://through-the-interface.typepad.com/through_the_interface/android/http://through-the-interface.typepad.com/through_the_interface/ajax/http://through-the-interface.typepad.com/through_the_interface/3ds-max/http://through-the-interface.typepad.com/through_the_interface/3d-printing/http://through-the-interface.typepad.com/through_the_interface/2009/05/wolframalpha-a-computational-knowledge-engine-in-the-cloud.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/05/wolframalpha-a-computational-knowledge-engine-in-the-cloud.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/05/wolframalpha-a-computational-knowledge-engine-in-the-cloud.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/02/3d-printing-star-wars-weaponry-from-autocad-models.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/02/3d-printing-star-wars-weaponry-from-autocad-models.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/02/3d-printing-star-wars-weaponry-from-autocad-models.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/12/the-evolution-of-autodesk-university.htmlhttp://through-the-interface.typepad.com/through_the_interface/2009/12/the-evolution-of-autodesk-university.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/11/using-client-si.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/11/using-client-si.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/11/using-client-si.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2011/01/januarys-plugin-of-the-month-live-on-autodesk-labs-draworder-by-layer-for-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/04/hosting-our-aspnet-web-api-project-on-windows-azure-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/04/hosting-our-aspnet-web-api-project-on-windows-azure-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/04/hosting-our-aspnet-web-api-project-on-windows-azure-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2008/09/creating-a-laye.htmlhttp://through-the-interface.typepad.com/through_the_interface/2008/09/creating-a-laye.htmlhttp://through-the-interface.typepad.com/through_the_interface/2008/09/creating-a-laye.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2010/07/does-anyone-out-there-use-empty-or-emptyish-groups-in-autocad.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/04/under-the-hood-autocads-javascript-api.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/04/under-the-hood-autocads-javascript-api.htmlhttp://void%280%29/http://through-the-interface.typepad.com/through_the_interface/index.rdfhttp://through-the-interface.typepad.com/through_the_interface/index.rdfhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/applying-a-grad.htmlhttp://through-the-interface.typepad.com/through_the_interface/http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/reverse.htmlhttp://through-the-interface.typepad.com/through_the_interface/posts.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/forcing-autocad-object-snapping-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/au-2013-classes-available-on-demand.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/attack-of-the-robots.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/happy-2014.htmlhttps://plus.google.com/111739174732269215736?rel=authorhttp://through-the-interface.typepad.com/through_the_interface/about-the-author.htmlhttp://through-the-interface.typepad.com/through_the_interface/about-the-author.htmlmailto:?charset=utf-8&subject=Check%20out%20this%20page%20in%20Spanish%20translated%20from%20English&body=Translated%3A%20http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html%23mstto%3Des%0D%0AOriginal%3A%20http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html%0D%0A%0D%0AAutomatic%20translation%20powered%20by%20Microsoft%C2%AE%20Translator%0D%0Ahttp%3A%2F%2Fwww.bing.com%2Ftranslatorhttp://www.microsofttranslator.com/widget/?ref=MSTWidgethttp://www.bing.com/translator?ref=MSTWidgethttp://www.bing.com/translator?ref=MSTWidgethttp://www.bing.com/translator?ref=MSTWidgethttp://%20translate%20this%20page/5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
A U T O D E S K B L O G S
AutoCAD Insider
Between the Lines
It's Alive in the Lab
Mod the Machine
The Building Coder
It's All Just Ones and Zeros
Dances with Elephants
AutoCAD DevBlog
Cloud and Mobile DevBlog
AEC DevBlog
Manufacturing DevBlog
Infrastructure Modeling DevBlog
Around the Corner
More on autodesk.com...
publ i c voi d SetObj ectText ( s t r i ng text)
{
t ypeText Box. Text = t ext;
}
publ i c voi d SetObj ectI d( Obj ectI d i d)
{
i f ( i d == Obj ectI d. Nul l )
{
SetObj ectText ( "" ) ;
} el se
{
Document doc =
Autodesk. AutoCAD. Appl i cati onSer vi ces.
Appl i cat i on. DocumentManager . Mdi Act i veDocument ;
Document Lock l oc =
doc. LockDocument( ) ;
usi ng ( l oc)
{
Tr ansact i on t r =
doc. Transact i onManager. Star t Transacti on( ) ;
usi ng ( t r )
{ DBObj ect obj = tr . GetObj ect( i d, OpenMode. ForRead);
Set Obj ect Text( obj . GetType( ) . ToStr i ng( ) ) ;
t r . Commi t ( ) ;
}
}
}
}
pr i vate voi d cl oseBut t on_Cl i ck(obj ect sender, Event Args e)
{
thi s . Cl ose() ;
}
}
}
So which event should we respond to, to find out when objects are selected? In
this case I chose a PointMonitor - this class tells you a lot of really useful
information about the current selection process. It also has the advantage of
picking up the act of hovering over objects - no need for selection to actually
happen. One other fun option would have been to use a Database event
(ObjectAppended) to display information about objects as they are added to the
drawing.
A few other comments about the code:
Predictably enough we now use ShowModelessDialog rather than
ShowModalDialog()
We have our form as a member variable of the class, as its lifespangoes beyond the command we use to show it
I've also removed the selection code; we're no longer asking for objects
to be selected
Here's the updated command implementation:
usi ng Autodesk. AutoCAD. Appl i cati onSer vi ces;
usi ng Aut odesk. AutoCAD. Dat abaseServi ces;
usi ng Autodesk. AutoCAD. Edi t orI nput;
usi ng Aut odesk. AutoCAD. Runti me;
usi ng Syst em;
usi ng Cust omDi al ogs;
AutoCAD.NET AutoCAD
Autodesk Autodes
Exchange AutoLISP
Visual LISP Azure
processing Blocks
Books Civil 3D
Commands Concur
programming Confe
Core Console Cust
objects Database
Debugging Design
DesignScript DevCDevTV Dimensions
Documents Draw o
Drawing structure
Dynamic Dynamic
Excel F# Faceboo
Fields Fractals
Freewheel Games
Geometry Graphic
system Hatches H
Installation Instructa
Interviews Inventor
IronPython IronRub
Java JavaScript J
JSON Kinect Lea
Motion LINQ Mac
Mobile Morgan Ne
Notification / EventObject properties
ObjectARX Overru
Personal Plotting
of the Month Poin
clouds Purge Pyt
Raspberry Pi RealD
Reality capture R
Retro computing Re
Robotics Ruby Ru
SaaS Security
Selection Social m
Solid modeling Ta
Tinkercad Training
Transactions Trans
Travel Unity3D Us
interface Visual Ba
VBA Visual Studio
Web/Tech Weblogs
WinRT WPF XML
R E C E N TP O S T S
Forcing AutoCAD o
snapping using .NE
Update on purging
linestyles from Aut
drawings using .NE
AU 2013 classes a
on-demand
Attack of the robots
Happy 2014
Merry Christmas!
Moving text in an
AutoCAD block usi
.NET Part 3
Disabling snapping
specific AutoCAD o
using .NET Part 2
Disabling snapping
specific AutoCAD o
using .NET Part 1
http://blogs.autodesk.com/autocadinsiderhttp://autodesk.blogs.com/between_the_lines/http://blogs.autodesk.com/labshttp://modthemachine.typepad.com/http://thebuildingcoder.typepad.com/http://justonesandzeros.typepad.com/http://dances-with-elephants.typepad.com/http://adndevblog.typepad.com/autocadhttp://adndevblog.typepad.com/cloud_and_mobile/http://adndevblog.typepad.com/aechttp://adndevblog.typepad.com/manufacturinghttp://adndevblog.typepad.com/infrastructurehttp://around-the-corner.typepad.com/http://blogs.autodesk.com/http://through-the-interface.typepad.com/through_the_interface/autocad_net/http://through-the-interface.typepad.com/through_the_interface/autocad_net/http://through-the-interface.typepad.com/through_the_interface/autocad_oem/http://through-the-interface.typepad.com/through_the_interface/autodesk/http://through-the-interface.typepad.com/through_the_interface/autodesk-exchange/http://through-the-interface.typepad.com/through_the_interface/autodesk-exchange/http://through-the-interface.typepad.com/through_the_interface/visual_lisp/http://through-the-interface.typepad.com/through_the_interface/visual_lisp/http://through-the-interface.typepad.com/through_the_interface/azure/http://through-the-interface.typepad.com/through_the_interface/batch_processing/http://through-the-interface.typepad.com/through_the_interface/blocks/http://through-the-interface.typepad.com/through_the_interface/books/http://through-the-interface.typepad.com/through_the_interface/civil_3d/http://through-the-interface.typepad.com/through_the_interface/commands/http://through-the-interface.typepad.com/through_the_interface/concurrent_programming/http://through-the-interface.typepad.com/through_the_interface/concurrent_programming/http://through-the-interface.typepad.com/through_the_interface/conferences/http://through-the-interface.typepad.com/through_the_interface/core-console/http://through-the-interface.typepad.com/through_the_interface/custom_objects/http://through-the-interface.typepad.com/through_the_interface/custom_objects/http://through-the-interface.typepad.com/through_the_interface/database/http://through-the-interface.typepad.com/through_the_interface/debugging/http://through-the-interface.typepad.com/through_the_interface/design/http://through-the-interface.typepad.com/through_the_interface/designscript/http://through-the-interface.typepad.com/through_the_interface/devcasts/http://through-the-interface.typepad.com/through_the_interface/devtv/http://through-the-interface.typepad.com/through_the_interface/multileaders/http://through-the-interface.typepad.com/through_the_interface/documents/http://through-the-interface.typepad.com/through_the_interface/draw_order/http://through-the-interface.typepad.com/through_the_interface/drawing_structure/http://through-the-interface.typepad.com/through_the_interface/dynamic/http://through-the-interface.typepad.com/through_the_interface/dynamic-blocks/http://through-the-interface.typepad.com/through_the_interface/excel/http://through-the-interface.typepad.com/through_the_interface/f/http://through-the-interface.typepad.com/through_the_interface/facebook/http://through-the-interface.typepad.com/through_the_interface/fields/http://through-the-interface.typepad.com/through_the_interface/fractals/http://through-the-interface.typepad.com/through_the_interface/freewheel/http://through-the-interface.typepad.com/through_the_interface/games/http://through-the-interface.typepad.com/through_the_interface/geometry/http://through-the-interface.typepad.com/through_the_interface/graphics_system/http://through-the-interface.typepad.com/through_the_interface/graphics_system/http://through-the-interface.typepad.com/through_the_interface/hatches/http://through-the-interface.typepad.com/through_the_interface/html/http://through-the-interface.typepad.com/through_the_interface/installation/http://through-the-interface.typepad.com/through_the_interface/instructables/http://through-the-interface.typepad.com/through_the_interface/interviews/http://through-the-interface.typepad.com/through_the_interface/inventor/http://through-the-interface.typepad.com/through_the_interface/ironpython/http://through-the-interface.typepad.com/through_the_interface/ironruby/http://through-the-interface.typepad.com/through_the_interface/java/http://through-the-interface.typepad.com/through_the_interface/javascript/http://through-the-interface.typepad.com/through_the_interface/jigs/http://through-the-interface.typepad.com/through_the_interface/json/http://through-the-interface.typepad.com/through_the_interface/kinect/http://through-the-interface.typepad.com/through_the_interface/leap-motion/http://through-the-interface.typepad.com/through_the_interface/leap-motion/http://through-the-interface.typepad.com/through_the_interface/linq/http://through-the-interface.typepad.com/through_the_interface/mac/http://through-the-interface.typepad.com/through_the_interface/mobile/http://through-the-interface.typepad.com/through_the_interface/morgan/http://through-the-interface.typepad.com/through_the_interface/netduino/http://through-the-interface.typepad.com/through_the_interface/notification_events/http://through-the-interface.typepad.com/through_the_interface/object_properties/http://through-the-interface.typepad.com/through_the_interface/objectarx/http://through-the-interface.typepad.com/through_the_interface/overrules/http://through-the-interface.typepad.com/through_the_interface/personal/http://through-the-interface.typepad.com/through_the_interface/plotting/http://through-the-interface.typepad.com/through_the_interface/plugin-of-the-month/http://through-the-interface.typepad.com/through_the_interface/point-clouds/http://through-the-interface.typepad.com/through_the_interface/point-clouds/http://through-the-interface.typepad.com/through_the_interface/purge/http://through-the-interface.typepad.com/through_the_interface/python/http://through-the-interface.typepad.com/through_the_interface/raspberry-pi/http://through-the-interface.typepad.com/through_the_interface/realdwg/http://through-the-interface.typepad.com/through_the_interface/reality-capture/http://through-the-interface.typepad.com/through_the_interface/rest/http://through-the-interface.typepad.com/through_the_interface/retro-computing/http://through-the-interface.typepad.com/through_the_interface/revit/http://through-the-interface.typepad.com/through_the_interface/robotics/http://through-the-interface.typepad.com/through_the_interface/ruby/http://through-the-interface.typepad.com/through_the_interface/runtime/http://through-the-interface.typepad.com/through_the_interface/saas/http://through-the-interface.typepad.com/through_the_interface/security/http://through-the-interface.typepad.com/through_the_interface/selection/http://through-the-interface.typepad.com/through_the_interface/social-media/http://through-the-interface.typepad.com/through_the_interface/solid_modeling/http://through-the-interface.typepad.com/through_the_interface/tables/http://through-the-interface.typepad.com/through_the_interface/tinkercad/http://through-the-interface.typepad.com/through_the_interface/training/http://through-the-interface.typepad.com/through_the_interface/transactions/http://through-the-interface.typepad.com/through_the_interface/translation/http://through-the-interface.typepad.com/through_the_interface/travel/http://through-the-interface.typepad.com/through_the_interface/unity3d/http://through-the-interface.typepad.com/through_the_interface/user_interface/http://through-the-interface.typepad.com/through_the_interface/user_interface/http://through-the-interface.typepad.com/through_the_interface/visual_basic/http://through-the-interface.typepad.com/through_the_interface/visual_basic/http://through-the-interface.typepad.com/through_the_interface/visual_studio/http://through-the-interface.typepad.com/through_the_interface/webtech/http://through-the-interface.typepad.com/through_the_interface/weblogs/http://through-the-interface.typepad.com/through_the_interface/winrt/http://through-the-interface.typepad.com/through_the_interface/wpf/http://through-the-interface.typepad.com/through_the_interface/xml/http://through-the-interface.typepad.com/through_the_interface/2014/01/forcing-autocad-object-snapping-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/forcing-autocad-object-snapping-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/au-2013-classes-available-on-demand.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/au-2013-classes-available-on-demand.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/attack-of-the-robots.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/happy-2014.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/merry-christmas.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-3.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-3.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-3.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/disabling-snapping-to-specific-autocad-objects-using-net-part-2.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-3.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-3.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-3.htmlhttp://through-the-interface.typepad.com/through_the_interface/2013/12/merry-christmas.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/happy-2014.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/attack-of-the-robots.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/au-2013-classes-available-on-demand.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/au-2013-classes-available-on-demand.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/update-on-purging-dgn-linestyles-from-autocad-drawings-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/forcing-autocad-object-snapping-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/2014/01/forcing-autocad-object-snapping-using-net.htmlhttp://through-the-interface.typepad.com/through_the_interface/xml/http://through-the-interface.typepad.com/through_the_interface/wpf/http://through-the-interface.typepad.com/through_the_interface/winrt/http://through-the-interface.typepad.com/through_the_interface/weblogs/http://through-the-interface.typepad.com/through_the_interface/webtech/http://through-the-interface.typepad.com/through_the_interface/visual_studio/http://through-the-interface.typepad.com/through_the_interface/visual_basic/http://through-the-interface.typepad.com/through_the_interface/visual_basic/http://through-the-interface.typepad.com/through_the_interface/user_interface/http://through-the-interface.typepad.com/through_the_interface/user_interface/http://through-the-interface.typepad.com/through_the_interface/unity3d/http://through-the-interface.typepad.com/through_the_interface/travel/http://through-the-interface.typepad.com/through_the_interface/translation/http://through-the-interface.typepad.com/through_the_interface/transactions/http://through-the-interface.typepad.com/through_the_interface/training/http://through-the-interface.typepad.com/through_the_interface/tinkercad/http://through-the-interface.typepad.com/through_the_interface/tables/http://through-the-interface.typepad.com/through_the_interface/solid_modeling/http://through-the-interface.typepad.com/through_the_interface/social-media/http://through-the-interface.typepad.com/through_the_interface/selection/http://through-the-interface.typepad.com/through_the_interface/security/http://through-the-interface.typepad.com/through_the_interface/saas/http://through-the-interface.typepad.com/through_the_interface/runtime/http://through-the-interface.typepad.com/through_the_interface/ruby/http://through-the-interface.typepad.com/through_the_interface/robotics/http://through-the-interface.typepad.com/through_the_interface/revit/http://through-the-interface.typepad.com/through_the_interface/retro-computing/http://through-the-interface.typepad.com/through_the_interface/rest/http://through-the-interface.typepad.com/through_the_interface/reality-capture/http://through-the-interface.typepad.com/through_the_interface/realdwg/http://through-the-interface.typepad.com/through_the_interface/raspberry-pi/http://through-the-interface.typepad.com/through_the_interface/python/http://through-the-interface.typepad.com/through_the_interface/purge/http://through-the-interface.typepad.com/through_the_interface/point-clouds/http://through-the-interface.typepad.com/through_the_interface/point-clouds/http://through-the-interface.typepad.com/through_the_interface/plugin-of-the-month/http://through-the-interface.typepad.com/through_the_interface/plotting/http://through-the-interface.typepad.com/through_the_interface/personal/http://through-the-interface.typepad.com/through_the_interface/overrules/http://through-the-interface.typepad.com/through_the_interface/objectarx/http://through-the-interface.typepad.com/through_the_interface/object_properties/http://through-the-interface.typepad.com/through_the_interface/notification_events/http://through-the-interface.typepad.com/through_the_interface/netduino/http://through-the-interface.typepad.com/through_the_interface/morgan/http://through-the-interface.typepad.com/through_the_interface/mobile/http://through-the-interface.typepad.com/through_the_interface/mac/http://through-the-interface.typepad.com/through_the_interface/linq/http://through-the-interface.typepad.com/through_the_interface/leap-motion/http://through-the-interface.typepad.com/through_the_interface/leap-motion/http://through-the-interface.typepad.com/through_the_interface/kinect/http://through-the-interface.typepad.com/through_the_interface/json/http://through-the-interface.typepad.com/through_the_interface/jigs/http://through-the-interface.typepad.com/through_the_interface/javascript/http://through-the-interface.typepad.com/through_the_interface/java/http://through-the-interface.typepad.com/through_the_interface/ironruby/http://through-the-interface.typepad.com/through_the_interface/ironpython/http://through-the-interface.typepad.com/through_the_interface/inventor/http://through-the-interface.typepad.com/through_the_interface/interviews/http://through-the-interface.typepad.com/through_the_interface/instructables/http://through-the-interface.typepad.com/through_the_interface/installation/http://through-the-interface.typepad.com/through_the_interface/html/http://through-the-interface.typepad.com/through_the_interface/hatches/http://through-the-interface.typepad.com/through_the_interface/graphics_system/http://through-the-interface.typepad.com/through_the_interface/graphics_system/http://through-the-interface.typepad.com/through_the_interface/geometry/http://through-the-interface.typepad.com/through_the_interface/games/http://through-the-interface.typepad.com/through_the_interface/freewheel/http://through-the-interface.typepad.com/through_the_interface/fractals/http://through-the-interface.typepad.com/through_the_interface/fields/http://through-the-interface.typepad.com/through_the_interface/facebook/http://through-the-interface.typepad.com/through_the_interface/f/http://through-the-interface.typepad.com/through_the_interface/excel/http://through-the-interface.typepad.com/through_the_interface/dynamic-blocks/http://through-the-interface.typepad.com/through_the_interface/dynamic/http://through-the-interface.typepad.com/through_the_interface/drawing_structure/http://through-the-interface.typepad.com/through_the_interface/draw_order/http://through-the-interface.typepad.com/through_the_interface/documents/http://through-the-interface.typepad.com/through_the_interface/multileaders/http://through-the-interface.typepad.com/through_the_interface/devtv/http://through-the-interface.typepad.com/through_the_interface/devcasts/http://through-the-interface.typepad.com/through_the_interface/designscript/http://through-the-interface.typepad.com/through_the_interface/design/http://through-the-interface.typepad.com/through_the_interface/debugging/http://through-the-interface.typepad.com/through_the_interface/database/http://through-the-interface.typepad.com/through_the_interface/custom_objects/http://through-the-interface.typepad.com/through_the_interface/custom_objects/http://through-the-interface.typepad.com/through_the_interface/core-console/http://through-the-interface.typepad.com/through_the_interface/conferences/http://through-the-interface.typepad.com/through_the_interface/concurrent_programming/http://through-the-interface.typepad.com/through_the_interface/concurrent_programming/http://through-the-interface.typepad.com/through_the_interface/commands/http://through-the-interface.typepad.com/through_the_interface/civil_3d/http://through-the-interface.typepad.com/through_the_interface/books/http://through-the-interface.typepad.com/through_the_interface/blocks/http://through-the-interface.typepad.com/through_the_interface/batch_processing/http://through-the-interface.typepad.com/through_the_interface/azure/http://through-the-interface.typepad.com/through_the_interface/visual_lisp/http://through-the-interface.typepad.com/through_the_interface/visual_lisp/http://through-the-interface.typepad.com/through_the_interface/autodesk-exchange/http://through-the-interface.typepad.com/through_the_interface/autodesk-exchange/http://through-the-interface.typepad.com/through_the_interface/autodesk/http://through-the-interface.typepad.com/through_the_interface/autocad_oem/http://through-the-interface.typepad.com/through_the_interface/autocad_net/http://through-the-interface.typepad.com/through_the_interface/autocad_net/http://blogs.autodesk.com/http://around-the-corner.typepad.com/http://adndevblog.typepad.com/infrastructurehttp://adndevblog.typepad.com/manufacturinghttp://adndevblog.typepad.com/aechttp://adndevblog.typepad.com/cloud_and_mobile/http://adndevblog.typepad.com/autocadhttp://dances-with-elephants.typepad.com/http://justonesandzeros.typepad.com/http://thebuildingcoder.typepad.com/http://modthemachine.typepad.com/http://blogs.autodesk.com/labshttp://autodesk.blogs.com/between_the_lines/http://blogs.autodesk.com/autocadinsiderhttp://apps.exchange.autodesk.com/http://www.autodesk.com/joinadn5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
namespace Cust omDi al ogs
{
publ i c cl ass Commands
{
TypeVi ewerFor m tv f ;
publ i c Commands( )
{
t vf = newTypeVi ewerFor m( ) ;
Document doc =
Appl i cati on. DocumentManager . Mdi Act i veDocument ;
Edi t or ed = doc. Edi t or;
ed. Poi ntMoni t or +=
new Poi ntMoni t orEvent Handl er ( OnMoni t orPoi nt) ;
}
~Commands( )
{
t r y
{
tvf. Di spose() ;
Document doc =
Appl i cat i on. DocumentManager . Mdi Act i veDocument ; Edi tor ed = doc. Edi t or;
ed. Poi ntMoni t or - =
new Poi ntMoni t orEvent Handl er ( OnMoni t orPoi nt) ;
}
cat ch( Syst em. Except i on)
{
/ / The edi t or may no l onger
/ / be avai l abl e on unl oad
}
}
pr i vate voi d OnMoni t orPoi nt(
obj ect sender , Poi ntMoni t orEventArgs e
)
{
Ful l Subent i t yPath[] paths =
e. Cont ext . GetPi ckedEnti t i es( ) ;
i f ( paths. Lengt h
5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
Comments
Using a modal
.NET dialog to
display AutoCAD
object ...
Using a modeless
.NET dialog to
display properties
of ...
Using a palette
from .NET to
display properties
of multiple ...
Accessing the
AutoCAD objects
referred to by fields
using ...
Appl i cati on. ShowModel essDi al og( nul l , t vf , f a l s e) ;
}
}
}
And here's the source projectfor this version of the application. When you run the
application you may experience issues with the dialog getting/retaining focus - this
is generally a problem with modeless dialogs that has been addressed
automatically by the Palette class, something we'll take a look at in a future post.
You might also like:
Linkwithin
Posted at 07:03 AM inAutoCAD,AutoCAD .NET, Object properties, User interface| Permalink
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83452464869e200e0098798658833
Listed below are links to weblogs that reference Using a modeless .NET dialog to
display AutoCAD object properties:
Reply July 02, 2007 at 04:31 PM
Thank you for the code sample, and I have a question?
If you have for example, a polyline in the for of a slot
when two of the sides have an arc, and you have other
polylines that meet those sides and all around that slot
to leave it as an island.
Pointmonitor do not work and I have seen other cases
where fail to select.
Is there something we can do?
I have tried to use this class before in one of my
commands to select closed areas but not always was
giving me the right one.
Then, I end up making a selection of the closed
polylines on the screen and using a function to select
the polyline by defining an internal point, instead.
Thanks!
Luis.
Luis said...
December 2012 (1
November 2012 (1
October 2012 (14)
September 2012 (1
August 2012 (13)
July 2012 (9)
June 2012 (13)
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/files/TypeViewerSource2.ziphttp://through-the-interface.typepad.com/through_the_interface/files/TypeViewerSource2.ziphttp://www.linkwithin.com/learn?ref=widgethttp://through-the-interface.typepad.com/through_the_interface/autocad/http://through-the-interface.typepad.com/through_the_interface/autocad_net/http://through-the-interface.typepad.com/through_the_interface/object_properties/http://through-the-interface.typepad.com/through_the_interface/user_interface/http://void%200/http://through-the-interface.typepad.com/through_the_interface/2012/12/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/11/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/10/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/09/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/08/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/07/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/06/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/06/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/07/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/08/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/09/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/10/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/11/index.htmlhttp://through-the-interface.typepad.com/through_the_interface/2012/12/index.htmlhttp://void%200/http://through-the-interface.typepad.com/through_the_interface/user_interface/http://through-the-interface.typepad.com/through_the_interface/object_properties/http://through-the-interface.typepad.com/through_the_interface/autocad_net/http://through-the-interface.typepad.com/through_the_interface/autocad/http://www.linkwithin.com/learn?ref=widgethttp://through-the-interface.typepad.com/through_the_interface/files/TypeViewerSource2.ziphttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-the-a.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-palette.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modal-1.html5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
Reply July 06, 2007 at 05:37 AM
I have been using PointMonitor to display information
about the entity via AppendToolTipText. It works great
except for one thing: My drawing is mostly solids and if I
hover over a solid so that it is highlighted, it will actually
display the information of the solid that is behind the
object that I'm trying to get the information for.
How can I assure that I get the information for the
object that is being highlighted?
Tom said...
Reply July 06, 2007 at 11:39 AM
Luis -
I'm afraid your description of the geometry isn't clear to
me. Are you trying to detect when the cursor is hovering
within a particular object? Unfortunately "pick in space"
is not enabled when hovering over objects - the
PointMonitor doesn't pick them up. Unless I've
misunderstood...
Tom -
I'm not sure why this is happening. One thought is to
make sure you're not picking the wrong item from the
list (assuming there are more than one entity returned
by the PointMonitor). I tried to reproduce the problem in
my own code, but it seemed to work OK - a lot may
depend on which visual style you're working with, etc.
Regards,
Kean
Keansaid...
Kean;
Excuse my bad explanation :(
Let see if I can explain better this time, by providing a
short sample that can give you an idea:
Draw an ellipse (with pellipse=1), then draw a rectangle
to enclosure that ellipse in the center.
Then, draw a line that divides the rectangle, can be
drawn vertical or horizontal. Then use the commandbpoly and generate two new closed polylines in the
areas between the rectangle and the ellipse on the
center.
Erase, the original rectangle, and the line, and now call
or use the pointmonitor, it won't select the ellipse, I
know it can be brought up with draworder and later use
the pointmonitor.
The sample I provided it is very simple, but in the case I
was thinking of using it it gets more complex, and the
idea is have an easy selection, that's why I end up
Luis said...
http://void%200/http://void%200/http://blogs.autodesk.com/through-the-interfacehttp://blogs.autodesk.com/through-the-interfacehttp://void%200/http://void%200/5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
Reply July 07, 2007 at 04:38 AM
using a point inside the areas.
Hope, you are not sleep when reading this last line.
Thanks!
Reply July 09, 2007 at 03:21 PM
Luis,
I think the PointMonitor is working OK... check out the
latest post in this seriesto see if the code in there
helps.
Regards,
Kean
Keansaid...
Reply July 20, 2007 at 04:11 PM
Hi Kean,is it possible to have some examples of dockable
modelss dialogs using .Net? (no palettes)
thanks a lot in advance
David
David said...
Reply July 20, 2007 at 06:49 PM
Hi David,
The parent of CAdUiPaletteSet (the internal
MFC/ObjectARX class the PaletteSet wraps) isCAdUiDockControlBar, which is not exposed through
the .NET API.
So PaletteSet is currently the way to go for
implementing a dockable modeless UI inside AutoCAD
using .NET.
Is there a particular reason you'd prefer not to use it?
Regards,
Kean
Keansaid...
Hi,
1)loading
2)calling "VT"
3)terminating the dialogbox
4)recalling "VT" --> Throws an Exception! (Can't access
the object, Objectname: TypeViewerForm)
Regards,
David
David said...
http://void%200/http://void%200/http://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://blogs.autodesk.com/through-the-interfacehttp://void%200/http://void%200/http://blogs.autodesk.com/through-the-interfacehttp://blogs.autodesk.com/through-the-interfacehttp://void%200/http://void%200/http://blogs.autodesk.com/through-the-interfacehttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://through-the-interface.typepad.com/through_the_interface/2007/07/using-a-modeles.htmlhttp://void%200/http://void%200/5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
Reply August 08, 2007 at 02:18 PM
Reply August 08, 2007 at 06:51 PM
Hi David,
It seems the form is betting disposed, and we then want
to bring it up again. One option is to call this.Hide() in
the closebutton handler, but we'd then have to set the
dialog not to show the "X" button.
The better option is probably to check for the availability
of the form inside the VT command implementation,
creating it again, as necessary:
[CommandMethod("vt",CommandFlags.UsePickSet)]
public void ViewType()
{
if (tvf == null || tvf.IsDisposed)
tvf = new TypeViewerForm();
Application.ShowModelessDialog(null, tvf, false);
}
Cheers,
Kean
Keansaid...
Reply August 22, 2008 at 01: 51 AM
Hi Kean, sorry if this is not relevant, but I would like to
draw the AutoCAD objects like lines and circles on the
dialog itself (or part of the dialog, a dialog item). Is this
possible?
Your help is greatly appreciated.
Cheers, Nabil.
Nabil Sleiman said...
Reply August 22, 2008 at 08: 11 AM
Hi Nabil,
If you need to display entities from a drawing or even
temporary entities you add on the fly, you should look at
the BlockView sample.
Regards,
Kean
Keansaid...
".. you may experience issues with the dialog
getting/retaining focus - this is generally a problem with
modeless dialogs.."
Hi Kean,
Would you please help me in finding a way to get/retain
ali said...
http://void%200/http://void%200/http://blogs.autodesk.com/through-the-interfacehttp://void%200/http://void%200/http://through-the-interface.typepad.com/through_the_interface/2008/06/autocad-net-ver.htmlhttp://blogs.autodesk.com/through-the-interfacehttp://blogs.autodesk.com/through-the-interfacehttp://through-the-interface.typepad.com/through_the_interface/2008/06/autocad-net-ver.htmlhttp://void%200/http://void%200/http://blogs.autodesk.com/through-the-interfacehttp://void%200/http://void%200/5/23/2018 Using a Modeless .NET Dialog to Display AutoCAD Object Properties - Through The - ...
http:///reader/full/using-a-modeless-net-dialog-to-display-autocad-object-prope
Using a modeless .NET dialog to display AutoCAD object properties - Through the Interface
http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html[14/01/2014 18:23:38]
Comment below or sign in with Typepad Facebook Twitter Google+
and more...
(You can use HTML tags like and to style your text. URLsautomatically linked.)
Email address is not displayed with comment.
Reply June 03, 2013 at 03:28 PM
focus in a modeless form?
Many Thanks,
Reply June 04, 2013 at 12:16 PM
Hi ali,
I can't, right now. You might try posting to the
AutoCAD .NET discussion group, to see if
someone there can help.
Regards,
Kean
Kean Walmsleysaid in reply to ali...
Name
Email Address
Web Site URL
Post Preview
http://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=facebook&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=facebook&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=twitter&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=twitter&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=gplus&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=openid&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://void%200/http://void%200/http://blogs.autodesk.com/through-the-interfacehttp://blogs.autodesk.com/through-the-interfacehttp://void%200/http://void%200/http://www.linkwithin.com/http://www.typepad.com/http://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=openid&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=gplus&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=twitter&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&service=facebook&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.htmlhttp://www.typepad.com/sitelogin?uri=http%3A%2F%2Fthrough-the-interface.typepad.com%2Fthrough_the_interface%2F2007%2F06%2Fusing-a-modeles.html&fp=8c3cdea943bc977bf70a9a5b04060377&view_uri=http%3A%2F%2Fprofile.typepad.com%2F&via=blogside&post_uri=http://through-the-interface.typepad.com/through_the_interface/2007/06/using-a-modeles.html