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

How can I Pass patameter array list at startup

4 REPLIES 4
Reply
Message 1 of 5
MZeeshan
259 Views, 4 Replies

How can I Pass patameter array list at startup

How can I Pass patameter array list at startup of autocad???

Normally In any general application, 'Main' method accepts array as arguments. Means if any one wants to pass patameters at startup. he can send parameters separated by commas...and on that bases, decisions has taken on application load.

Public Sub Main(ByVal args() As String)
'array list arg()
End Sub

My requirement is same, I want to get some parameters at start-up of autocad...or when initialize() method is fired.

Canany one help me in this issue????
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: MZeeshan

If your .NET application is loaded at start up and implimented
IExtensionApplication, you can read settings in acad.exe.config file or do
similar things.


wrote in message news:5552573@discussion.autodesk.com...
How can I Pass patameter array list at startup of autocad???

Normally In any general application, 'Main' method accepts array as
arguments. Means if any one wants to pass patameters at startup. he can send
parameters separated by commas...and on that bases, decisions has taken on
application load.

Public Sub Main(ByVal args() As String)
'array list arg()
End Sub

My requirement is same, I want to get some parameters at start-up of
autocad...or when initialize() method is fired.

Canany one help me in this issue????
Message 3 of 5
Anonymous
in reply to: MZeeshan

You can't pass parameters to the entry point, because
the entry point is called by the NETLOAD command or
by the application loader when your application is
registered to automatically load at startup or when one
of its commands is issued.

The puzzling part of your question is that while you say
you want to receive parameters, you don't say where you
want to pass them from, which makes no sense.

You can define LISP functions that can take arguments,
and call them from LISP. You can define commands that
prompt for input, and supply it via a macro or LISP.

Those are your options.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5552573@discussion.autodesk.com...
How can I Pass patameter array list at startup of autocad???

Normally In any general application, 'Main' method accepts array as arguments. Means if any one wants to pass patameters at startup. he can send parameters separated by commas...and on that bases, decisions has taken on application load.

Public Sub Main(ByVal args() As String)
'array list arg()
End Sub

My requirement is same, I want to get some parameters at start-up of autocad...or when initialize() method is fired.

Canany one help me in this issue????
Message 4 of 5
MZeeshan
in reply to: MZeeshan

Thanks to reply.
I am calling Autocad exe from vb form by using Shell command.
And my requirement is that when ever autocad is calling from this form having some parameters, Autocad new instance will open, do some work, and automatically close. Now it means that When ever any autocad instance will open, it check weather particular parameter comes or not, if not, then it is its normal running, otherwise the autoclosing scenario will works.......

Got my point??
I can do this by using alternate way that save valuesin text file and read when autocad opens. if values found........., , but it is not good approach.

Is there any proper one??
thanks again to reply.
Message 5 of 5
Anonymous
in reply to: MZeeshan

Why are you starting AutoCAD via Shell, rather than
using ActiveX ?

AutoCAD is an ActiveX server that can be started from
any ActiveX client.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5554559@discussion.autodesk.com...
Thanks to reply.
I am calling Autocad exe from vb form by using Shell command.
And my requirement is that when ever autocad is calling from this form having some parameters, Autocad new instance will open, do some work, and automatically close. Now it means that When ever any autocad instance will open, it check weather particular parameter comes or not, if not, then it is its normal running, otherwise the autoclosing scenario will works.......

Got my point??
I can do this by using alternate way that save valuesin text file and read when autocad opens. if values found........., , but it is not good approach.

Is there any proper one??
thanks again to reply.

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