I have characters more than 3000 which i made from Excel.When i try to paste it in command bar it shows nothing.But when i try to paste 200-300 characters from following characters, it works perfectly.Is there a character limit in Command bar ? If so how can i paste the following characters in Autocad (Using VBA/Lisp or any other way ?).
PL 360,6102 360,6119 PL 365,6102 365,6119 PL 370,6102 370,6119 PL 375,6102 375,6119 PL 380,6102 380,6119 PL 385,6102 385,6119 PL 390,6102 390,6119 PL 399,6102 399,6119 PL 408,6102 408,6119 PL 417,6102 417,6119 PL 426,6102 426,6119 PL 435,6102 435,6119 PL 444,6102 444,6119 PL 453,6102 453,6119 PL 462,6102 462,6119 PL 467,6102 467,6119 PL 472,6102 472,6119 PL 477,6102 477,6119 PL 482,6102 482,6119 PL 487,6102 487,6119 PL 492,6102 492,6119 PL 497,6102 497,6119 PL 558,6102 558,6119 PL 563,6102 563,6119 PL 568,6102 568,6119 PL 573,6102 573,6119 PL 578,6102 578,6119 PL 583,6102 583,6119 PL 588,6102 588,6119 PL 593,6102 593,6119 PL 598,6102 598,6119 PL 603,6102 603,6119 PL 608,6102 608,6119 PL 613,6102 613,6119 PL 618,6102 618,6119 PL 627,6102 627,6119 PL 636,6102 636,6119 PL 645,6102 645,6119 PL 654,6102 654,6119 PL 663,6102 663,6119 PL 672,6102 672,6119 PL 681,6102 681,6119 PL 690,6102 690,6119 PL 699,6102 699,6119 PL 708,6102 708,6119 PL 717,6102 717,6119 PL 726,6102 726,6119 PL 735,6102 735,6119 PL 744,6102 744,6119 PL 753,6102 753,6119 PL 758,6102 758,6119 PL 763,6102 763,6119 PL 768,6102 768,6119 PL 773,6102 773,6119 PL 778,6102 778,6119 PL 783,6102 783,6119 PL 788,6102 788,6119 PL 793,6102 793,6119 PL 798,6102 798,6119 PL 803,6102 803,6119 PL 808,6102 808,6119 PL 813,6102 813,6119 PL 818,6102 818,6119 PL 876,6102 876,6119 PL 881,6102 881,6119 PL 886,6102 886,6119 PL 891,6102 891,6119 PL 896,6102 896,6119 PL 901,6102 901,6119 PL 906,6102 906,6119 PL 915,6102 915,6119 PL 924,6102 924,6119 PL 933,6102 933,6119 PL 942,6102 942,6119 PL 951,6102 951,6119 PL 960,6102 960,6119 PL 969,6102 969,6119 PL 978,6102 978,6119 PL 983,6102 983,6119 PL 988,6102 988,6119 PL 993,6102 993,6119 PL 998,6102 998,6119 PL 1003,6102 1003,6119 PL 1008,6102 1008,6119 PL 1013,6102 1013,6119 PL 1074,6102 1074,6119 PL 1079,6102 1079,6119 PL 1084,6102 1084,6119 PL 1089,6102 1089,6119 PL 1098,6102 1098,6119 PL 1107,6102 1107,6119 PL 1116,6102 1116,6119 PL 1125,6102 1125,6119 PL 1134,6102 1134,6119 PL 1139,6102 1139,6119 PL 1144,6102 1144,6119 PL 1149,6102 1149,6119 PL 1154,6102 1154,6119 PL 1215,6102 1215,6119 PL 1220,6102 1220,6119 PL 1225,6102 1225,6119 PL 1230,6102 1230,6119 PL 1235,6102 1235,6119 PL 1240,6102 1240,6119 PL 1245,6102 1245,6119 PL 1254,6102 1254,6119 PL 1263,6102 1263,6119 PL 1272,6102 1272,6119 PL 1281,6102 1281,6119 PL 1290,6102 1290,6119 PL 1299,6102 1299,6119 PL 1308,6102 1308,6119 PL 1317,6102 1317,6119 PL 1322,6102 1322,6119 PL 1327,6102 1327,6119 PL 1332,6102 1332,6119 PL 1337,6102 1337,6119 PL 1342,6102 1342,6119 PL 1347,6102 1347,6119 PL 1352,6102 1352,6119
first, of course there is a limits but i do not know what it is?! but from what i see you are trying to enter a pack of lines (or polylines) and the quick way to do it is to write a small program (it could be in AutoLISP\VBA or any other programming [inside or outside AutoCAD] convenient with you) to create a script file (.scr) then run the script inside AutoCAD and magic is done 😀
Moshe
Any example/link of VBA for such problem would be greatly helpful.Also are there no limits in programming ie VBA/Scripts ?
unfortunately i do not do vba but if you are? all you have to do is open the excel file (or csv) and create a script file.
the script file format for AutoCAD is very simple:
graphics.scr (simple text file)
; first line - draw a rectangle
LINE 0,0,0 10,0,0 10,10,0 0,10,0 close
; second line - draw 3 segments of polyline
PLINE 1,1,0 5,5,0 12,5,0 5,12,0
; next line is left empty for autocad to terminate pline command.
; forth line - draw a circle
circle 5,5,0 3
to run it in AutoCAD invoke SCRIPT command.
for your clarity write each command and it's arguments in separate line.
each character has a meaning even spaces. each space is like hitting space bar and an empty line is like pressing enter. you can not pause in script file, it is not for interactive programming. if you made a mistake, recreate the script.
cheers,
Moshe
By trial and error, I found out the maximum command line character count is 1,024.
Can't find what you're looking for? Ask the community or share your knowledge.