.NET

Reply
*Norman Yuan
Message 1 of 3 (73 Views)

If you use .NET API with Acad MAP (2006), MAP SKIN is an evil.

73 Views, 2 Replies
07-20-2006 10:20 AM
Anyone who uses AcadMap2006 or later knows that "MAP SKIN" is a piece of
crap that does nothing but hurt AutoCAD's performance.

If you do .NET API programming, there is yet another reason to ask Autodesk
to completely get rid of MAP SKIN (I mean remove it from Acad MAP, not just
ask user to turn it off, because some innocent user may turn it back on
without knowing all the bad things).

When you add a Windows form in your .NET API project and want to show it as
dialog box, naturally, you want to set the form's "ShowInTaskBar" Property
to "False", because it is a Dialog Box. However, if the AutoCAD MAP's map
skin is turned on, your .NET App will crush when you call

Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(myDialog)

That is, If you want MAP SKIN, you must set the form's "ShowInTaskBar" to
True, if you want to set "ShowInTaskBar" to False (you should, since it is
dialog box), then the MAP SKIN must be turned off.

However, if the form is blank (no single control is on it), the dialog box
will show wether MAP SKIN is on or off regardless the "ShowInTaskBar"'s
setting. Once a control (such as a label, or any control) is added to the
form, it comes.

I haven't tesed this on AcadMap2007 ( I just removed AcadMap2007 from my
developing box right before I run into this issue).
*Tony Tanzillo
Message 2 of 3 (73 Views)

Re: If you use .NET API with Acad MAP (2006), MAP SKIN is an evil.

07-20-2006 12:20 PM in reply to: *Norman Yuan
There's lots of other issues with MAPSKINMAP, see the
map developer newsgroup for my experience with it.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Norman Yuan" wrote in message news:5243449@discussion.autodesk.com...
Anyone who uses AcadMap2006 or later knows that "MAP SKIN" is a piece of
crap that does nothing but hurt AutoCAD's performance.

If you do .NET API programming, there is yet another reason to ask Autodesk
to completely get rid of MAP SKIN (I mean remove it from Acad MAP, not just
ask user to turn it off, because some innocent user may turn it back on
without knowing all the bad things).

When you add a Windows form in your .NET API project and want to show it as
dialog box, naturally, you want to set the form's "ShowInTaskBar" Property
to "False", because it is a Dialog Box. However, if the AutoCAD MAP's map
skin is turned on, your .NET App will crush when you call

Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(myDialog)

That is, If you want MAP SKIN, you must set the form's "ShowInTaskBar" to
True, if you want to set "ShowInTaskBar" to False (you should, since it is
dialog box), then the MAP SKIN must be turned off.

However, if the form is blank (no single control is on it), the dialog box
will show wether MAP SKIN is on or off regardless the "ShowInTaskBar"'s
setting. Once a control (such as a label, or any control) is added to the
form, it comes.

I haven't tesed this on AcadMap2007 ( I just removed AcadMap2007 from my
developing box right before I run into this issue).
*Gaston Nunez
Message 3 of 3 (73 Views)

Re: If you use .NET API with Acad MAP (2006), MAP SKIN is an evil.

07-21-2006 02:12 PM in reply to: *Norman Yuan
Fortunately it seems there is no mapskinmap command or "feature" in Map (not
3D) 2007

-gnb




"Norman Yuan" wrote in message
news:5243449@discussion.autodesk.com...
Anyone who uses AcadMap2006 or later knows that "MAP SKIN" is a piece of
crap that does nothing but hurt AutoCAD's performance.

If you do .NET API programming, there is yet another reason to ask Autodesk
to completely get rid of MAP SKIN (I mean remove it from Acad MAP, not just
ask user to turn it off, because some innocent user may turn it back on
without knowing all the bad things).

When you add a Windows form in your .NET API project and want to show it as
dialog box, naturally, you want to set the form's "ShowInTaskBar" Property
to "False", because it is a Dialog Box. However, if the AutoCAD MAP's map
skin is turned on, your .NET App will crush when you call

Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(myDialog)

That is, If you want MAP SKIN, you must set the form's "ShowInTaskBar" to
True, if you want to set "ShowInTaskBar" to False (you should, since it is
dialog box), then the MAP SKIN must be turned off.

However, if the form is blank (no single control is on it), the dialog box
will show wether MAP SKIN is on or off regardless the "ShowInTaskBar"'s
setting. Once a control (such as a label, or any control) is added to the
form, it comes.

I haven't tesed this on AcadMap2007 ( I just removed AcadMap2007 from my
developing box right before I run into this issue).
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 or visit the Installation and Licensing Forum to get help installing your software.