Jump to content

Recommended Posts

Posted (edited)

Hey everyone,

 

First post here, but I have been lurking around quite a bit on the past to learn a couple things.

 

Long story short, I want to create a .scr to automate the creation and insertion of many data linked tables. I just started to mess around and test some things, and I came about the "-" modifier in front of commands to suppress the dialog box.

 

It looks like it does not work with the DATALINK command (the user interface still comes up to prompt the user to create the link), which is a bummer because this is the main bottleneck of the project. I already did the filedia = 0 and tested it with -TABLE, it works with that command.

 

I guess what I'm asking is, does the "-" modifier only work with certain commands, or am I doing something wrong with the DATALINK command?

 

Any help is much appreciated.

 

(EDIT)

My specs, just in case it is needed:

AutoCAD LT 2026, everything is up to date

Almost everything is stock, I have not touched anything else besides filedia

Edited by gontzi7
Specs and more info about the system
Posted

Some commands don't have a command line only mode. With having to create a name for the link, the path for the file, the sheet, and range in the spreadsheet they probably want you to use the GUI. maybe someone is non LT version can check if -datalink works but i doubt it.

 

might want to see if you can create link from Excel to Autocad.

 

Posted
7 hours ago, BIGAL said:

Welcome aboard. Try this, IT WILL NOT WORK WITH LT 2024+ need a full Acad, Bricscad etc.

 

 

data link excel.lsp 4.09 kB · 1 download

Yeah, tried it and no luck.

 

I've found an interesting lead regarding a .NET plugin and doing it that way. I will investigate more and follow up with whatever I end up finding, but it looks like what I'm trying to do is not supported at all by either AutoCAD or AutoCAD LT

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