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

Error:: Load Palette through Network

1 REPLY 1
Reply
Message 1 of 2
JamesDin
209 Views, 1 Reply

Error:: Load Palette through Network

Hi Everyone.

I am developing a project used with Palette form.
I am coding with .Net2005 and Autocad2006.

It works good in local (c:\ ) root, but Error occur through Network(\\192.168.---.---\).
I tried 2 methods.
1. Key in 'Netload' in the command window and select network path & .dll directly.
2. Key in '(command "Netload" "//192.168.---.---/.dll")

Please refer below code and a error message(Attach File) and reply your an excellent opinion.

Thanks a lot.

'---------- Code --------------------------
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.DatabaseServices

Imports Autodesk.AutoCAD.Windows
Imports Autodesk.AutoCAD.Runtime

Public Class Class2

Dim ps As Autodesk.AutoCAD.Windows.PaletteSet

_
Public Sub createPalette()
If ps Is Nothing Then

Try
ps = New Autodesk.AutoCAD.Windows.PaletteSet ("Employee Palette")

Dim myForm As ModelessForm = New ModelessForm()
ps.Add("Employee Palette", myForm)
ps.MinimumSize = New System.Drawing.Size(300, 300)
ps.Visible = True
Catch ex As Exception
MsgBox(ex.ToString)

End Try

End If
End Sub

End Class
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: JamesDin

i couldn't figure it out either, i think you'll have to get your it guy to do something with security, so since i figured that nothing would ever happen there i made my routine that loads the .dll to copy the newest one off of the network to the local machine and load from there. it's the best thing i could think of, plus i don't have to worry about people having locks on my application, so i can replace or delete whenever. B)

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