Jump to content

Edit Datalink through VBA


Shtevil

Recommended Posts

I was wondering if it's possible to edit a datalink's link options using VBA. If so has anyone done this?

 

I've set up a series of existing datalinks for our drawing revisions, but when i create a new sheet from a sheet template i want to bring in the data link and just reset the sheet it is referencing.

 

To do this manually you have edit the data link and it takes between 30 and 50 second for the modify excel link dialogue box to appear.

 

Any help would be appreciated.

 

Cheers

 

Steve.

Link to comment
Share on other sites

  • 5 years later...

i am researching on similar concept. i found a web page "http://adndevblog.typepad.com/autocad/2013/04/linking-attributes-and-table-using-dataextraction-api.html#comments".

there are information about how to create datalink and update etc. but it isnt vba.

can anyone tell which language is the code written in ?

Link to comment
Share on other sites

thanks for the answer Mr. SEANT.

at the object browser of Autocad VBA i couldnt find anything related to creating datalink. is there some kind of library for VBA like in the C# ?

Link to comment
Share on other sites

You are probably more qualified to answer that question than am I. I haven't done much with VBA in the last half dozen years.

Link to comment
Share on other sites

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