Jump to content

Transfering Variable to another AUTO CAD session (Any body can help)


Recommended Posts

Posted

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.

Posted

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.

Posted

To transfer between two simultaneous AutoCAD sessions I will use a temporary file.

 

(getvar "TEMPPREFIX")

 

Regards,

Mircea

Posted

Maybe try using the blackboard namespace - vl-bb-set / vl-bb-ref

Posted

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

Posted
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.

Posted

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

Posted
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.

Posted
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

Posted

can you just write the information to a file and then call it to the other drawing?

Posted

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.

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...