error in script writing

error in script writing

Anonymous
Not applicable
541 Views
2 Replies
Message 1 of 3

error in script writing

Anonymous
Not applicable

i made one command in lips.that i loaded in autocad.my command require other 14 inputs for complete drawing.

now i made one scr. file for it.but problem is its work for only 1 time
just a example :
_.circle _non 0,0,0 5
_.circle _non 0,0,0 50
_.circle _non 0,0,0 100

than autocad draw 3 circles of 5 50 & 100 dia

but i write :
_.bcs _non 0,-20000 C PB1 10000 350 400 400 400 Y 4 4-D12+2-D16 4-D12 4 4-D20 2 8 150 0 2 +0.000
_.bcs _non 10000,-20000 C PB2 10000 350 400 400 400 Y 4 4-D12+2-D16 4-D12 4 4-D20 2 8 150 0 2 +0.000

than autocad draw only for 1st time use of command and than show error that _.bcs command not found.
but if i type “bcs” in command line command works

my question is why these things happen and wt i do to run my command so many times that i want with help of .SCR file

0 Likes
Accepted solutions (1)
542 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant
Accepted solution

BCS is not a native AutoCAD command -- it must be a custom-defined command, or a special-purpose command defined in an overlay program such as Civil 3D or Architecture or something.  The underscore and decimal-point  _.  prefix is for native AutoCAD commands [the underscore is to make things usable in other-than-English-language versions of AutoCAD, and the decimal-point is to force it to use the native command definition, in case it may have been redefined].  I don't know what BCS does, so I couldn't say why it works once -- I wouldn't expect it to do even that.  Try removing those  _.  prefixes from before the BCS "command" names, and see whether that makes a difference.

Kent Cooper, AIA
Message 3 of 3

Anonymous
Not applicable

thanks for reply sir,

BCS is command made by me in lips. so its lips command. i try it without _. prefix command but it run for only 1 time with SCR file and after lips complete its run it shows bcs is unknow command.

0 Likes