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

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

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
179 Views, 2 Replies

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

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).
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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).
Message 3 of 3
Anonymous
in reply to: Anonymous

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).

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