AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issues with running scripts in AE 2019

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Anonymous
370 Views, 5 Replies

Issues with running scripts in AE 2019

Hello,

 

I'm trying to run a line number script in AutoCAD Electrical 2019 that works correctly on my boss'  machine that runs an older, non-electrical version of AutoCAD. While the script runs it does not work correctly on AE 19, as every time I run the script I get differing results, sometimes with the numbers out of place and usually with many numbers overlapping. I'm just looking for any bit of insight as it's been hard just trying to research this issue. Are there any known issues or fixes?

 

Attached is the script, thanks so much regardless.

 

Hal

5 REPLIES 5
Message 2 of 6
pendean
in reply to: Anonymous

post your script file or the entire contents here please, along with a sample DWG file where it does not work.



Message 3 of 6
Anonymous
in reply to: pendean

Here are the contents:



-text

j

mr

1.6875,20.75

0.125

0

3100

-text

j

mr

1.6875,20.25

0.125

0

3101

-text

j

mr

1.6875,19.75

0.125

0

3102

-text

j

mr

1.6875,19.25

0.125

0

3103

-text

j

mr

1.6875,18.75

0.125

0

3104

-text

j

mr

1.6875,18.25

0.125

0

3105

-text

j

mr

1.6875,17.75

0.125

0

3106

-text

j

mr

1.6875,17.25

0.125

0

3107

-text

j

mr

1.6875,16.75

0.125

0

3108

-text

j

mr

1.6875,16.25

0.125

0

3109

-text

j

mr

1.6875,15.75

0.125

0

3110

-text

j

mr

1.6875,15.25

0.125

0

3111

-text

j

mr

1.6875,14.75

0.125

0

3112

-text

j

mr

1.6875,14.25

0.125

0

3113

-text

j

mr

1.6875,13.75

0.125

0

3114

-text

j

mr

1.6875,13.25

0.125

0

3115

-text

j

mr

1.6875,12.75

0.125

0

3116

-text

j

mr

1.6875,12.25

0.125

0

3117

-text

j

mr

1.6875,11.75

0.125

0

3118

-text

j

mr

1.6875,11.25

0.125

0

3119

-text

j

mr

1.6875,10.75

0.125

0

3120

-text

j

mr

1.6875,10.25

0.125

0

3121

-text

j

mr

1.6875,9.75

0.125

0

3122

-text

j

mr

1.6875,9.25

0.125

0

3123

-text

j

mr

1.6875,8.75

0.125

0

3124

-text

j

mr

1.6875,8.25

0.125

0

3125

-text

j

mr

1.6875,7.75

0.125

0

3126

-text

j

mr

1.6875,7.25

0.125

0

3127

-text

j

mr

1.6875,6.75

0.125

0

3128

-text

j

mr

1.6875,6.25

0.125

0

3129

-text

j

mr

1.6875,5.75

0.125

0

3130

-text

j

mr

1.6875,5.25

0.125

0

3131

-text

j

mr

1.6875,4.75

0.125

0

3132

-text

j

mr

1.6875,4.25

0.125

0

3133

-text

j

mr

1.6875,3.75

0.125

0

3134

-text

j

mr

1.6875,3.25

0.125

0

3135

-text

j

mr

11.375,18.75

0.125

0

3136

-text

j

mr

11.375,18.25

0.125

0

3137

-text

j

mr

11.375,17.75

0.125

0

3138

-text

j

mr

11.375,17.25

0.125

0

3139

-text

j

mr

11.375,16.75

0.125

0

3140

-text

j

mr

11.375,16.25

0.125

0

3141

-text

j

mr

11.375,15.75

0.125

0

3142

-text

j

mr

11.375,15.25

0.125

0

3143

-text

j

mr

11.375,14.75

0.125

0

3144

-text

j

mr

11.375,14.25

0.125

0

3145

-text

j

mr

11.375,13.75

0.125

0

3146

-text

j

mr

11.375,13.25

0.125

0

3147

-text

j

mr

11.375,12.75

0.125

0

3148

-text

j

mr

11.375,12.25

0.125

0

3149

-text

j

mr

11.375,11.75

0.125

0

3150

-text

j

mr

11.375,11.25

0.125

0

3151

-text

j

mr

11.375,10.75

0.125

0

3152

-text

j

mr

11.375,10.25

0.125

0

3153

-text

j

mr

11.375,9.75

0.125

0

3154

-text

j

mr

11.375,9.25

0.125

0

3155

-text

j

mr

11.375,8.75

0.125

0

3156

-text

j

mr

11.375,8.25

0.125

0

3157

-text

j

mr

11.375,7.75

0.125

0

3158

-text

j

mr

11.375,7.25

0.125

0

3159

-text

j

mr

11.375,6.75

0.125

0

3160

-text

j

mr

11.375,6.25

0.125

0

3161

-text

j

mr

11.375,5.75

0.125

0

3162

-text

j

mr

11.375,5.25

0.125

0

3163

-text

j

mr

11.375,4.75

0.125

0

3164

-text

j

mr

11.375,4.25

0.125

0

3165

-text

j

mr

11.375,3.75

0.125

0

3166

-text

j

mr

11.375,3.25

0.125

0

3167

-text

j

mr

21.0625,18.75

0.125

0

3168

-text

j

mr

21.0625,18.25

0.125

0

3169

-text

j

mr

21.0625,17.75

0.125

0

3170

-text

j

mr

21.0625,17.25

0.125

0

3171

-text

j

mr

21.0625,16.75

0.125

0

3172

-text

j

mr

21.0625,16.25

0.125

0

3173

-text

j

mr

21.0625,15.75

0.125

0

3174

-text

j

mr

21.0625,15.25

0.125

0

3175

-text

j

mr

21.0625,14.75

0.125

0

3176

-text

j

mr

21.0625,14.25

0.125

0

3177

-text

j

mr

21.0625,13.75

0.125

0

3178

-text

j

mr

21.0625,13.25

0.125

0

3179

-text

j

mr

21.0625,12.75

0.125

0

3180

-text

j

mr

21.0625,12.25

0.125

0

3181

-text

j

mr

21.0625,11.75

0.125

0

3182

-text

j

mr

21.0625,11.25

0.125

0

3183

-text

j

mr

21.0625,10.75

0.125

0

3184

-text

j

mr

21.0625,10.25

0.125

0

3185

-text

j

mr

21.0625,9.75

0.125

0

3186

-text

j

mr

21.0625,9.25

0.125

0

3187

-text

j

mr

21.0625,8.75

0.125

0

3188

-text

j

mr

21.0625,8.25

0.125

0

3189

-text

j

mr

21.0625,7.75

0.125

0

3190

-text

j

mr

21.0625,7.25

0.125

0

3191

-text

j

mr

21.0625,6.75

0.125

0

3192

-text

j

mr

21.0625,6.25

0.125

0

3193

-text

j

mr

21.0625,5.75

0.125

0

3194

-text

j

mr

21.0625,5.25

0.125

0

3195

-text

j

mr

21.0625,4.75

0.125

0

3196

-text

j

mr

21.0625,4.25

0.125

0

3197

-text

j

mr

21.0625,3.75

0.125

0

3198

-text

j

mr

21.0625,3.25

0.125

0

3199









Attached is the DWG file



Thanks again,

Hal Bernstein


Message 4 of 6
Anonymous
in reply to: pendean

Sorry,

-text
j
mr
1.6875,20.75
0.125
0
3100
-text
j
mr
1.6875,20.25
0.125
0
3101
-text
j
mr
1.6875,19.75
0.125
0
3102
-text
j
mr
1.6875,19.25
0.125
0
3103
-text
j
mr
1.6875,18.75
0.125
0
3104
-text
j
mr
1.6875,18.25
0.125
0
3105
-text
j
mr
1.6875,17.75
0.125
0
3106
-text
j
mr
1.6875,17.25
0.125
0
3107
-text
j
mr
1.6875,16.75
0.125
0
3108
-text
j
mr
1.6875,16.25
0.125
0
3109
-text
j
mr
1.6875,15.75
0.125
0
3110
-text
j
mr
1.6875,15.25
0.125
0
3111
-text
j
mr
1.6875,14.75
0.125
0
3112
-text
j
mr
1.6875,14.25
0.125
0
3113
-text
j
mr
1.6875,13.75
0.125
0
3114
-text
j
mr
1.6875,13.25
0.125
0
3115
-text
j
mr
1.6875,12.75
0.125
0
3116
-text
j
mr
1.6875,12.25
0.125
0
3117
-text
j
mr
1.6875,11.75
0.125
0
3118
-text
j
mr
1.6875,11.25
0.125
0
3119
-text
j
mr
1.6875,10.75
0.125
0
3120
-text
j
mr
1.6875,10.25
0.125
0
3121
-text
j
mr
1.6875,9.75
0.125
0
3122
-text
j
mr
1.6875,9.25
0.125
0
3123
-text
j
mr
1.6875,8.75
0.125
0
3124
-text
j
mr
1.6875,8.25
0.125
0
3125
-text
j
mr
1.6875,7.75
0.125
0
3126
-text
j
mr
1.6875,7.25
0.125
0
3127
-text
j
mr
1.6875,6.75
0.125
0
3128
-text
j
mr
1.6875,6.25
0.125
0
3129
-text
j
mr
1.6875,5.75
0.125
0
3130
-text
j
mr
1.6875,5.25
0.125
0
3131
-text
j
mr
1.6875,4.75
0.125
0
3132
-text
j
mr
1.6875,4.25
0.125
0
3133
-text
j
mr
1.6875,3.75
0.125
0
3134
-text
j
mr
1.6875,3.25
0.125
0
3135
-text
j
mr
11.375,18.75
0.125
0
3136
-text
j
mr
11.375,18.25
0.125
0
3137
-text
j
mr
11.375,17.75
0.125
0
3138
-text
j
mr
11.375,17.25
0.125
0
3139
-text
j
mr
11.375,16.75
0.125
0
3140
-text
j
mr
11.375,16.25
0.125
0
3141
-text
j
mr
11.375,15.75
0.125
0
3142
-text
j
mr
11.375,15.25
0.125
0
3143
-text
j
mr
11.375,14.75
0.125
0
3144
-text
j
mr
11.375,14.25
0.125
0
3145
-text
j
mr
11.375,13.75
0.125
0
3146
-text
j
mr
11.375,13.25
0.125
0
3147
-text
j
mr
11.375,12.75
0.125
0
3148
-text
j
mr
11.375,12.25
0.125
0
3149
-text
j
mr
11.375,11.75
0.125
0
3150
-text
j
mr
11.375,11.25
0.125
0
3151
-text
j
mr
11.375,10.75
0.125
0
3152
-text
j
mr
11.375,10.25
0.125
0
3153
-text
j
mr
11.375,9.75
0.125
0
3154
-text
j
mr
11.375,9.25
0.125
0
3155
-text
j
mr
11.375,8.75
0.125
0
3156
-text
j
mr
11.375,8.25
0.125
0
3157
-text
j
mr
11.375,7.75
0.125
0
3158
-text
j
mr
11.375,7.25
0.125
0
3159
-text
j
mr
11.375,6.75
0.125
0
3160
-text
j
mr
11.375,6.25
0.125
0
3161
-text
j
mr
11.375,5.75
0.125
0
3162
-text
j
mr
11.375,5.25
0.125
0
3163
-text
j
mr
11.375,4.75
0.125
0
3164
-text
j
mr
11.375,4.25
0.125
0
3165
-text
j
mr
11.375,3.75
0.125
0
3166
-text
j
mr
11.375,3.25
0.125
0
3167
-text
j
mr
21.0625,18.75
0.125
0
3168
-text
j
mr
21.0625,18.25
0.125
0
3169
-text
j
mr
21.0625,17.75
0.125
0
3170
-text
j
mr
21.0625,17.25
0.125
0
3171
-text
j
mr
21.0625,16.75
0.125
0
3172
-text
j
mr
21.0625,16.25
0.125
0
3173
-text
j
mr
21.0625,15.75
0.125
0
3174
-text
j
mr
21.0625,15.25
0.125
0
3175
-text
j
mr
21.0625,14.75
0.125
0
3176
-text
j
mr
21.0625,14.25
0.125
0
3177
-text
j
mr
21.0625,13.75
0.125
0
3178
-text
j
mr
21.0625,13.25
0.125
0
3179
-text
j
mr
21.0625,12.75
0.125
0
3180
-text
j
mr
21.0625,12.25
0.125
0
3181
-text
j
mr
21.0625,11.75
0.125
0
3182
-text
j
mr
21.0625,11.25
0.125
0
3183
-text
j
mr
21.0625,10.75
0.125
0
3184
-text
j
mr
21.0625,10.25
0.125
0
3185
-text
j
mr
21.0625,9.75
0.125
0
3186
-text
j
mr
21.0625,9.25
0.125
0
3187
-text
j
mr
21.0625,8.75
0.125
0
3188
-text
j
mr
21.0625,8.25
0.125
0
3189
-text
j
mr
21.0625,7.75
0.125
0
3190
-text
j
mr
21.0625,7.25
0.125
0
3191
-text
j
mr
21.0625,6.75
0.125
0
3192
-text
j
mr
21.0625,6.25
0.125
0
3193
-text
j
mr
21.0625,5.75
0.125
0
3194
-text
j
mr
21.0625,5.25
0.125
0
3195
-text
j
mr
21.0625,4.75
0.125
0
3196
-text
j
mr
21.0625,4.25
0.125
0
3197
-text
j
mr
21.0625,3.75
0.125
0
3198
-text
j
mr
21.0625,3.25
0.125
0
3199

Above is the code, and here is the example drawing with the script results.

 

Thanks,

Hal

Message 5 of 6
rhesusminus
in reply to: Anonymous

Try to type OSNAPCOORD on the command line, and set it to 1.

Now, try the script again.

Trond Hasse Lie
AutoCAD Electrical and EPLAN expert
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 6 of 6
Anonymous
in reply to: rhesusminus

Thanks so much, that worked perfectly!

 

-Hal

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report