.NET

.NET

Reply
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 11 of 14 (110 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: 415
Registered: ‎09-23-2004
Message 12 of 14 (96 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 (94 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: 415
Registered: ‎09-23-2004
Message 14 of 14 (87 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.