Jump to content

specify point and text settings from the command line


Recommended Posts

Posted

Hello everyone, new to this forum and relatively new to autoCAD. I'm using an Excel file to import XY coordinates into autoCAD from a set of variables. So for example, I have a column designed to produce the command point 50,10 -text @ 0.4 90 TEST where 50,10 is the coordinate, 0.4 is text height, 90 is text rotation, and TEST is the point name or number. I then copy paste the whole column into autoCAD, which works very well for me to insert multiple numbered points without the need for scripts or exporting to notepad etc. However I'm looking for a way to specify other parameters, such as point layer (POINTS), text layer (TPOINTS), text style (TPOINTS), and alignment (TL). Is this possible to do from the command line (without getting prompts)? I tried searching but to no avail. Thanks in advance.

Posted

Have a look at this you can access a lot of the sysvars from command line as well to do stuff like like change layouts layers etc. You can run lines of lisp.

osmode 0 (alert "snaps off")
osmode 16431

point 50,10 -text @ 0.4 90 TEST

-la s points point 50,10 -la s text -text @ 0.4 90 TEST

clayer points point 50,10 clayer text -text @ 0.4 90 TEST

osmode 0 (alert "snaps off) clayer points point 50,10 clayer text -text @ 0.4 90 TEST osmode 16431

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