Author Topic: Table from a Data link  (Read 9124 times)

0 Members and 1 Guest are viewing this topic.

Fabricio28

  • Swamp Rat
  • Posts: 670
Table from a Data link
« on: November 27, 2012, 12:57:03 PM »
Hi guys,

 I'm having trouble to format the table from a data link. The table is larger and I can't delete column or rows of the table.

Anybody can help me please?

Thank in advance


Take a look in the files attached, please...
.

Drafter X

  • Swamp Rat
  • Posts: 578
Re: Table from a Data link
« Reply #1 on: November 27, 2012, 12:59:59 PM »
When you create your data link, specify the rows and columns you want to show. Once its a linked table in autocad, autocad wont let you delete, it wouldn't be a data link then as it would not match the linked source
CadJockey Militia Commander

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Table from a Data link
« Reply #2 on: November 27, 2012, 01:05:57 PM »
Thanks for the quick replay Drafter X,
 But When I insert a Table from a data link, you can't specify the rows and columns.

Quote
When you create your data link, specify the rows and columns you want to show.
When you create, yes. Right?


Regards


Drafter X

  • Swamp Rat
  • Posts: 578
Re: Table from a Data link
« Reply #3 on: November 27, 2012, 01:06:23 PM »
yes.
CadJockey Militia Commander

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Table from a Data link
« Reply #4 on: November 27, 2012, 01:10:42 PM »
So, Im not trying to create a table.
 
I've inserted from a data link. But the table is too large and I'd like to remove columns and rows.

Anybody can help me??

Drafter X

  • Swamp Rat
  • Posts: 578
Re: Table from a Data link
« Reply #5 on: November 27, 2012, 01:12:26 PM »
create a new data link from the same table with the rows/columns you want. Or edit the data link itself
CadJockey Militia Commander

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Table from a Data link
« Reply #6 on: November 27, 2012, 01:21:01 PM »
Thanks Drafter X,
 
I created other file and it works.

Best Regards


Jeff H

  • Needs a day job
  • Posts: 6150
Re: Table from a Data link
« Reply #7 on: November 27, 2012, 01:29:56 PM »
 :-[
You gotta unlock the cells

Drafter X

  • Swamp Rat
  • Posts: 578
Re: Table from a Data link
« Reply #8 on: November 27, 2012, 01:31:29 PM »
I always had bad luck doing that, dunno if 2013 plays better. That and saving data back to source I always had issues with.
CadJockey Militia Commander

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Table from a Data link
« Reply #9 on: November 27, 2012, 01:59:04 PM »
Sorry for anyone who has dial-up and this was always easiest for me to do formating and add extra colums
 
Attached at bottom are updated files and should work if saved in same folder
 
 
  • Open Excel SpreadSheet Select the cells you want and click in Name Box and enter name the press enter to create a named range.

 
 
  • I named it Linky

 
 
  • The use DATALINK command and select the NamedRange

 
 
  • Then in TABLE command select the named range
 

 
  • Select the entire table by clicking top left corner and unlock the cells

 
 
  • Now the Linked cells will be available

 
  • Click the the little arrow at bottom

 
  • Then Check allow writing to source files

 

Drafter X

  • Swamp Rat
  • Posts: 578
Re: Table from a Data link
« Reply #10 on: November 27, 2012, 02:01:42 PM »
I know how, but have had cases where data did NOT write back to the source and it threw no sign of an error. My last company experimented with that a lot and had consistantly inconsistant results with it.  As I said, I have not messed with it in 2013 though.
CadJockey Militia Commander

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Table from a Data link
« Reply #11 on: November 27, 2012, 02:03:52 PM »
Hi Jeff H

Great tutorial!

Thanks for the excellent explanation. You helped me a lot.

Many Thanks
Greetings

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Table from a Data link
« Reply #12 on: November 27, 2012, 02:06:35 PM »
I know how, but have had cases where data did NOT write back to the source and it threw no sign of an error. My last company experimented with that a lot and had consistantly inconsistant results with it.  As I said, I have not messed with it in 2013 though.
The linking back to source file was thrown in for whoever but was pointing out that I have had better formatting luck creating a named range in excel file and using that as the source.

Drafter X

  • Swamp Rat
  • Posts: 578
Re: Table from a Data link
« Reply #13 on: November 27, 2012, 02:08:41 PM »
Good point, and I am glad you did, made me realize something with automation in that regards thats going to make some stuff a heck of a lot easier.
CadJockey Militia Commander

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Table from a Data link
« Reply #14 on: November 27, 2012, 02:12:35 PM »
Hi Jeff H

Great tutorial!

Thanks for the excellent explanation. You helped me a lot.

Many Thanks
Greetings
Not the quickest way but thought would be easiest to show how.
 
Depending on setting for cells in excel file and in autocad if a cell contents is very close to filling a cell it might cause it in autocad to make the row turn into two, until you get the settings right the quickest way was to click table and select open source and make column slighty bigger close and save