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

Reference problem in exe file

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
354 Views, 3 Replies

Reference problem in exe file

Hi!

I have created a program with two functions. One find all the 2d solids, and
open a dialog box.
Where the user can choose hatchtype to each solid layer, select the folder
for the "scripts" function, scale for the hatch and some other things.
This is stored in a xml file. Then I replace the solids with hatch

The second function uses the stored values to change from 2d solid to hatch
on all the drawings in the "scripts" folder without opening the drawing.
This works fine

The problem is that I want to start "script" function from a exe file
because this will run every morning at. 06:00.
I refer the dll in the exe fil

When I run the "script" function in dll'en from the exe file, I got this
error message:

Can not load the file or assambly acdbmgd, Verion=18.0.0.0, Cultor=neutral,
PublicKey Topken=null..........
Cant find file
(translate from norwegian)

I have tried all options when it comes to placement of acdbmgd

Any idea?

Thanks
Rune
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

You can't use the AutoCAD managed dlls from an .EXE.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

"Rune Aarnes" wrote in message
news:6342596@discussion.autodesk.com...
Hi!

I have created a program with two functions. One find all the 2d solids, and
open a dialog box.
Where the user can choose hatchtype to each solid layer, select the folder
for the "scripts" function, scale for the hatch and some other things.
This is stored in a xml file. Then I replace the solids with hatch

The second function uses the stored values to change from 2d solid to hatch
on all the drawings in the "scripts" folder without opening the drawing.
This works fine

The problem is that I want to start "script" function from a exe file
because this will run every morning at. 06:00.
I refer the dll in the exe fil

When I run the "script" function in dll'en from the exe file, I got this
error message:

Can not load the file or assambly acdbmgd, Verion=18.0.0.0, Cultor=neutral,
PublicKey Topken=null..........
Cant find file
(translate from norwegian)

I have tried all options when it comes to placement of acdbmgd

Any idea?

Thanks
Rune
Message 3 of 4
chiefbraincloud
in reply to: Anonymous

It sounds like a small reorganization might solve the problem.

If you build the .dll with the script command in it, build the .exe without the reference to the .dll, then use the .exe to Netload the .dll and call the script command from the command line. Then the .dll is the only thing that references the 'mgd' files and it is running in process.
Dave O.                                                                  Sig-Logos32.png
Message 4 of 4
Anonymous
in reply to: Anonymous

Thanks for tips, but I dont think I can do that because I cant do anything
in AutoCAD from an exe fil

What I try to do, is to find a way to run the script after startup of
AutoCAD automatically.

If I can do that, I can start acad.exe at 06:00 and then I can test if the
time is between 06:00 and 06:01 and then run the scrip




"chiefbraincloud" skrev i melding news:6342935@discussion.autodesk.com...
It sounds like a small reorganization might solve the problem.

If you build the .dll with the script command in it, build the .exe without
the reference to the .dll, then use the .exe to Netload the .dll and call
the script command from the command line. Then the .dll is the only thing
that references the 'mgd' files and it is running in process.

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