.NET

.NET

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

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

75 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 (75 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 (75 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).
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.