problem in opening arx

problem in opening arx

Anonymous
Not applicable
257 Views
3 Replies
Message 1 of 4

problem in opening arx

Anonymous
Not applicable
Sir,
In my program instead of giving static values for creating entities,the values for creating the entity is stored in a file and Iam reading those values by c++ file reading option.When I execute the program from vc editor and open the arx file it is working fine.But when I open autocad straight and try to load arx file it is giving some exception.In my case I want to open the file without executing program.How to achieve that.Please help me.

regards,
Subhashree.
0 Likes
258 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Hi Vasushri,

 

I'm sorry,but I don't understand you question. What
do you mean by 'In my case I want to open
the file without executing program
'.

 

I can't think of any definite reason why debugging
your application would produce different results than loading the same build
into AutoCAD, unless you're trying to do something before AutoCAD has
initialised, or your project settings are not correct (maybe linking to the
debug MFC libraries or something).

 

Are you using the ObjectARX Wizard (included in the
ObjectARX 2002 download)? If you do, you will at least be sure that your
ObjectARX project is set up correctly. If you can eliminate that possibility
then you can home in on the real cause.

 

Sorry I can't suggest anything more concrete -
perhaps you could try adding a little more detail to your question so I might
understand.


Cheers,

 

Stephen Preston
Developer Technical Services
Autodesk

 

style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Sir,

In my program instead of giving static values for creating entities,the
values for creating the entity is stored in a file and Iam reading those
values by c++ file reading option.When I execute the program from vc editor
and open the arx file it is working fine.But when I open autocad straight and
try to load arx file it is giving some exception.In my case I want to open the
file without executing program.How to achieve that.Please help me.

regards,
Subhashree.

0 Likes
Message 3 of 4

Anonymous
Not applicable
Sir,
Sorry for my question being not clear.Actually I have a rogram which will design a Plate Girder Bridge and the design results like Flange Width,Span etc are stored in a text file.Iam creating my arx application with ObjectARX appwizard only.In my arx application as I said earlier first I read the dimensions of the Plate Girder from the text file and then I try to draw the Plate Girder with my own entities.In Project settings Debug executable session I have given the path of acad.exe.When Iam running the program it opens autocad.When I load my application now it is able to draw the Plate Girder Bridge without any problem.
Instead without running my program If I open autocad and try to load my arx file,It is giving exception.I want to give this arx file to some other people where I cannot give the source code.I can only give my arx file.But if I do so now it is not working.I have tried to make my problem clear.How to solve this problem.

regards,
Subhashree.
0 Likes
Message 4 of 4

Anonymous
Not applicable
So just to be clear :

 

You have an ARX application. This ARX application
is dependent on an external text file, but is not dependent on any other
external application. When you run your ARX from the debugger everything is
fine. When you load you ARX (using ARX LOAD or APPLOAD) from AutoCAD (not
debugging) you app generates an exception error.

 

Without seeing any code, the only thing I can guess
is that you aren't specifying the full filepath for your text file. If this was
the case, then (when debugging) the current directory would most likely be set
as your project directory, but when not debugging the current directory would be
different. If you are trying to open a text file with the wrong filepath and not
testing for success/failure, then I can imagine you would throw an exception.
But I'm sure you understand - this is just a guess.

 

(I'm assuming that if you create a ARX application
shell using the Wizard (no additional code), that this loads into AutoCAD with
no errors.)

 

Are you an ADN member (
href="http://www.autodesk.com/adn">www.autodesk.com/adn
)? If so, you could
submit your problem (with sample code) through DevHelp Online on the members
only ADN website.

 

Cheers,

 

Stephen

 

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Sir,

Sorry for my question being not clear.Actually I have a rogram which will
design a Plate Girder Bridge and the design results like Flange Width,Span etc
are stored in a text file.Iam creating my arx application with ObjectARX
appwizard only.In my arx application as I said earlier first I read the
dimensions of the Plate Girder from the text file and then I try to draw the
Plate Girder with my own entities.In Project settings Debug executable session
I have given the path of acad.exe.When Iam running the program it opens
autocad.When I load my application now it is able to draw the Plate Girder
Bridge without any problem.
Instead without running my program If I open
autocad and try to load my arx file,It is giving exception.I want to give this
arx file to some other people where I cannot give the source code.I can only
give my arx file.But if I do so now it is not working.I have tried to make my
problem clear.How to solve this problem.

regards,
Subhashree.

0 Likes