prakashreddy Posted March 4, 2012 Posted March 4, 2012 Dear all, I am storing one AutoCad variable in one drawing, How i can get this variable in another drawing by keeping the SDI mode as 1. Quote
prakashreddy Posted March 5, 2012 Author Posted March 5, 2012 Currently iam using vl-propagate only. But It will work in one autocad session only not in another autocad. I need when i open new autocad session like by keeping SDI mode as 1. If it is 0 means vl-propagate will work. Quote
MSasu Posted March 5, 2012 Posted March 5, 2012 To transfer between two simultaneous AutoCAD sessions I will use a temporary file. (getvar "TEMPPREFIX") Regards, Mircea Quote
Lee Mac Posted March 5, 2012 Posted March 5, 2012 Maybe try using the blackboard namespace - vl-bb-set / vl-bb-ref Quote
MSasu Posted March 5, 2012 Posted March 5, 2012 I think that VL-BB-* functions will work only between drawings of the same AutoCAD session (MDI); the OP was looking for a solution to comunicate between drawings from different sessions (SDI = 1). Regards, Mircea Quote
Lee Mac Posted March 5, 2012 Posted March 5, 2012 I think that VL-BB-* functions will work only between drawings of the same AutoCAD session (MDI); the OP was looking for a solution to comunicate between drawings from different sessions (SDI = 1). The blackboard namespace exists outside of the document namespace, so should be available as long as the Application is running, regardless of whether a drawing is open. Quote
MSasu Posted March 5, 2012 Posted March 5, 2012 I'm afraid I can not agree. Single Drawing Interface (SDI) means that a separate AutoCAD instance (session) exists for each drawing opened simultaneously at a given time; the blackboard isn’t shared between those instances of the application. Regards, Mircea Quote
Lee Mac Posted March 5, 2012 Posted March 5, 2012 I'm afraid I can not agree. Single Drawing Interface (SDI) means that a separate AutoCAD instance (session) exists for each drawing opened simultaneously at a given time; the blackboard isn’t shared between those instances of the application. I guess we are both right - the behaviour you describe only occurs if a drawing is opened outside of the current running application, if you open a drawing from within the application, you are prompted to close the current drawing and the blackboard namespace data is still accessible. Quote
MSasu Posted March 5, 2012 Posted March 5, 2012 close the current drawing and the blackboard namespace data is still accessible. This is entirely true. So, the OP will have to decide what fit his/her case - I had the impression that he/she is looking to communicate between simultaneous opened drawings. Regards, Mircea Quote
JohnM Posted March 6, 2012 Posted March 6, 2012 can you just write the information to a file and then call it to the other drawing? Quote
prakashreddy Posted March 11, 2012 Author Posted March 11, 2012 sorry for late response. I used (vl-bb-set 'a 5) in one Autocad and i tried to get the same variable in another Autocad by (vl-bb-ref 'a). But i cant get the variable value. It is working in MDI not in SDI. Quote
Bill Tillman Posted March 13, 2012 Posted March 13, 2012 can you just write the information to a file and then call it to the other drawing? This was my first thought too. I use text files for all kinds of things and this is a good way of storing a value across anything including a reboot. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.