MAPSKINMAP + .NET application = kaboom

MAPSKINMAP + .NET application = kaboom

Anonymous
Not applicable
870 Views
12 Replies
Message 1 of 13

MAPSKINMAP + .NET application = kaboom

Anonymous
Not applicable
Anyone else tried using a WinForm in a managed
extension (NETLOAD) with the new fangled MAP
skin UI ?

A MAP 2006 user is trying to run one of my apps
that displays a simple Windows form as a modal
dialog.

When they have the new style skin enabled, the
form's client area doesn't paint, and disappears
as soon as they click on it, leaving the AutoCAD
window disabled, and forcing them to kill acad.exe
through task manager.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
871 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable
I'm not surprised. The Mapskinmap is like the 3rd headlight on a car, the
one center on the
front of the hood. Sounds like a good idea but.............

Murph


"Tony Tanzillo" wrote in message
news:5108651@discussion.autodesk.com...
Anyone else tried using a WinForm in a managed
extension (NETLOAD) with the new fangled MAP
skin UI ?

A MAP 2006 user is trying to run one of my apps
that displays a simple Windows form as a modal
dialog.

When they have the new style skin enabled, the
form's client area doesn't paint, and disappears
as soon as they click on it, leaving the AutoCAD
window disabled, and forcing them to kill acad.exe
through task manager.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
Message 3 of 13

Anonymous
Not applicable
James Murphy wrote:

> I'm not surprised. The Mapskinmap is like the 3rd headlight on a
> car, the one center on the front of the hood.

No, at least that would have 'some' use. The MapSkin is USELESS
cosmetics that SLOW DOWN an otherwise useful app.

Terry
0 Likes
Message 4 of 13

Anonymous
Not applicable
Thanks. I've advised them to turn it off and
pretend it doesn't exist.

--
http://www.caddzone.com

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

"James Murphy" wrote in message news:5108654@discussion.autodesk.com...
I'm not surprised. The Mapskinmap is like the 3rd headlight on a car, the
one center on the
front of the hood. Sounds like a good idea but.............

Murph


"Tony Tanzillo" wrote in message
news:5108651@discussion.autodesk.com...
Anyone else tried using a WinForm in a managed
extension (NETLOAD) with the new fangled MAP
skin UI ?

A MAP 2006 user is trying to run one of my apps
that displays a simple Windows form as a modal
dialog.

When they have the new style skin enabled, the
form's client area doesn't paint, and disappears
as soon as they click on it, leaving the AutoCAD
window disabled, and forcing them to kill acad.exe
through task manager.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
Message 5 of 13

Anonymous
Not applicable
Tony:

Also the skin engine it's a third party development: www.stadock.com , may
be them can help you if your customer insists using this "new feature".

Gaston



"Tony Tanzillo" wrote in message
news:5108951@discussion.autodesk.com...
Thanks. I've advised them to turn it off and
pretend it doesn't exist.

--
http://www.caddzone.com

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

"James Murphy" wrote in message
news:5108654@discussion.autodesk.com...
I'm not surprised. The Mapskinmap is like the 3rd headlight on a car, the
one center on the
front of the hood. Sounds like a good idea but.............

Murph


"Tony Tanzillo" wrote in message
news:5108651@discussion.autodesk.com...
Anyone else tried using a WinForm in a managed
extension (NETLOAD) with the new fangled MAP
skin UI ?

A MAP 2006 user is trying to run one of my apps
that displays a simple Windows form as a modal
dialog.

When they have the new style skin enabled, the
form's client area doesn't paint, and disappears
as soon as they click on it, leaving the AutoCAD
window disabled, and forcing them to kill acad.exe
through task manager.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
Message 6 of 13

Anonymous
Not applicable
Tony Tanzillo wrote:

> When they have the new style skin enabled, the form's client area
> doesn't paint, and disappears as soon as they click on it, leaving
> the AutoCAD window disabled, and forcing them to kill acad.exe
> through task manager.

I threw together a form with a few controls in VS2005, then displayed it
with ...

Public Class MyTestProj
_
Public Sub ShowMyForm()
Dim dlg As New MainForm()
Application.ShowModalDialog(dlg)
End Sub
End Class

... and it seems to work whether the Map Skin is on or off.

If you have something you want me to test on Map2006, email me at dotson
[at] dotsoft.com.

Terry
0 Likes
Message 7 of 13

Anonymous
Not applicable
Terry W. Dotson wrote:

> ... and it seems to work whether the Map Skin is on or off.

Of course there could be something wrong with your users machine, like
low resources (the skin probably eats it up).

Tery
0 Likes
Message 8 of 13

Anonymous
Not applicable
Thanks. I'm familar with the tools they're using
(the theme painting is done by a library from
StingRay software).

The problem is actually quite nasty. In addition
to the other symptoms, controls on the form
fail to respond to resizing the form.

I've attached two screenshots they made
showing the form with and without skins
(strangely, the docked palette which is in
the same DLL, seems have no problems
with the skins whatsoever).


--
http://www.caddzone.com

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

"Gaston Nunez" wrote in message
news:5110575@discussion.autodesk.com...
Tony:

Also the skin engine it's a third party development: www.stadock.com , may
be them can help you if your customer insists using this "new feature".

Gaston



"Tony Tanzillo" wrote in message
news:5108951@discussion.autodesk.com...
Thanks. I've advised them to turn it off and
pretend it doesn't exist.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
Message 9 of 13

Anonymous
Not applicable
Hi Tony,

Month ago I made few posts to .NET Customization NG indicating that
"something goes wrong" when displaying modal form- certain properties of my
form simply got ignored by Map. Later on I discovered that switching off the
skin solves majority of problems. Anyway, if anyone's simply forced (?) to
use skinned Map try avoiding following when designing your form:

- Buttons on the Form can be only rtNormal - buttons can't be Flat
- Form's opacity setting gets ignored (only values 0 and 100 are accepted)
- Form's Border property can't be set to FixedToolWindow
- Strange bahaviour when Form's ShowInTaskbar property is set to False

Switching off the Map's skin via Registry setting:

HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R16.2\ACAD-4002:409\Applications
\AcMap

DWORD value name: SkinEnabled
Should be set to 0 to disable Map skin.

Regards,
Maksim Sestic



"Tony Tanzillo" wrote in message
news:5108651@discussion.autodesk.com...
Anyone else tried using a WinForm in a managed
extension (NETLOAD) with the new fangled MAP
skin UI ?

A MAP 2006 user is trying to run one of my apps
that displays a simple Windows form as a modal
dialog.

When they have the new style skin enabled, the
form's client area doesn't paint, and disappears
as soon as they click on it, leaving the AutoCAD
window disabled, and forcing them to kill acad.exe
through task manager.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
Message 10 of 13

Anonymous
Not applicable
Hi there.
Map 2006 is not compatible with .net framework 2.0
If you have intalled only the version 1.0 or 1.1 nothing "buged" should happen.
But of course, if you have 2.0 as well, you probably don´t want to uninstal it.

So, the workaround is this:

get to acad.exe.config file
(normaly in c:\program files\autodesk map 2006)

open it with notepad (ie) and replace the text there with the following:






No matter wich version of the .net framework is installed, Map will always point to the version 1.1

Hope it helps..

cheers,
Clara
0 Likes
Message 11 of 13

Anonymous
Not applicable
the text didn´t apear because of the signs "< >"
So, where there is a « should be a "<" (without the quotation marks)
and, where´s a » should be a ">"
The browser actualy reads the signs....

The text is:

«configuration»
«startup»
«supportedRuntime version="v1.1.4322"/»
«/startup»
«/configuration»"
0 Likes
Message 12 of 13

Anonymous
Not applicable
Your solution may work from what I read someplace before, how ever a word of
caution on that method. If you install another program that need version 2.0
they have look for version 1.0 or 1,1 on your system and either uninstall it
or disable it in some way. Anything with The MS or AutoDesk stamp of
approval "should" be ok it's those other software you need to watch for.

Murph

wrote in message news:5161712@discussion.autodesk.com...
Hi there.
Map 2006 is not compatible with .net framework 2.0
If you have intalled only the version 1.0 or 1.1 nothing "buged" should
happen.
But of course, if you have 2.0 as well, you probably don´t want to uninstal
it.

So, the workaround is this:

get to acad.exe.config file
(normaly in c:\program files\autodesk map 2006)

open it with notepad (ie) and replace the text there with the following:






No matter wich version of the .net framework is installed, Map will always
point to the version 1.1

Hope it helps..

cheers,
Clara
0 Likes
Message 13 of 13

Anonymous
Not applicable
wrote

>> Hi there.
>> Map 2006 is not compatible with .net framework 2.0
>> If you have intalled only the version 1.0 or 1.1 nothing
>> "buged" should happen.

Hi. sorry to say this, but you're mistaken.

There is no framework 2.0 installed on the problem
system(s), and that has absolutely nothing to do
with it.

The application uses framework 1.1, and the
acad.exe.config file is set to use that version as
well.


--
http://www.caddzone.com

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