.NET

Reply
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 11 of 14 (104 Views)

Re: Save, Close, and re-Open a Drawing

07-21-2012 04:47 AM in reply to: mgorecki

I'm wondering, have you tried my code

instead of your lesson for me?

 

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Mentor
mgorecki
Posts: 414
Registered: ‎09-23-2004
Message 12 of 14 (90 Views)

Re: Save, Close, and re-Open a Drawing

07-23-2012 08:11 AM in reply to: Hallex

Hi Hallex,

The SaveOpenClose in my code is just a sub.  In order for me to use the "CommandFlags.Sesssion" it would have to be in the main calling code.  If I put it there, other things stop working, like layertables in other subs.  That's why I was asking if a main command method could launch another command method.

Also, I'm not sure of any lesson for you that I posted.  I was just asking if a command method could launch another command method as I was having problems with putting the "CommandFlags.Sessions" in the main command method.

You've helped me before and I'm really greatful for all the help.  No slight ever intended.

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 13 of 14 (88 Views)

Re: Save, Close, and re-Open a Drawing

07-23-2012 08:41 AM in reply to: mgorecki

Hi, mate, please do not make an offence on me

I just  didn't understand your task completely,

I've used local command name in my code

Cheers :smileyhappy:

 

~'J'~

 

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Mentor
mgorecki
Posts: 414
Registered: ‎09-23-2004
Message 14 of 14 (81 Views)

Re: Save, Close, and re-Open a Drawing

07-23-2012 09:30 AM in reply to: Hallex

No worries, have a great day!  :smileyhappy:

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!