SCR Script

SCR Script

Anonymous
Not applicable
722 Views
9 Replies
Message 1 of 10

SCR Script

Anonymous
Not applicable

I want to write a script for a cart to move in the warehouse pick path direction. Please help me with it. I am running into an error. 

0 Likes
723 Views
9 Replies
Replies (9)
Message 2 of 10

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... I am running into an error. 


Then you must have started writing something.  Post what you have so far, and describe the error.

Kent Cooper, AIA
0 Likes
Message 3 of 10

Anonymous
Not applicable

When I execute the code the object disappears. One of the objects in the group is Block.  

0 Likes
Message 4 of 10

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

When I execute the code ....  


What code?

Kent Cooper, AIA
0 Likes
Message 5 of 10

Anonymous
Not applicable

Move
g
NB1

-384'-3 63/64",261'-8"
-347'-6 3/8",261'-8"
delay 2000
rscript

0 Likes
Message 6 of 10

Kent1Cooper
Consultant
Consultant

So what are 'g' and 'NB1'?  If they are objects stored into AutoLisp variables, in the Script situation you would need to use the variable names with a preceding exclamation point:

!g

!NB1

It's not like inside AutoLisp, where you don't need that, but like doing it manually at the command line, where you do.

 

It doesn't look like it completes the object selection for the Move command -- typically an empty line [Enter only].

 

And I can understand the object disappearing if this is what repeats.  It would continue to Move it the same distance in the same direction, without ever Moving it back to the start again, so it would eventually leave the viewing area of the drawing.

 

[And really -- down to the sixty-fourth of an inch?]

Kent Cooper, AIA
0 Likes
Message 7 of 10

Anonymous
Not applicable

g = group and NB1 = group name. Can we schedule a call today to go over this?

0 Likes
Message 8 of 10

Kent1Cooper
Consultant
Consultant

I forgot about the Group option [editing commands don't show selection options unless you ask for them with a ?]. Have you tried at least completing the selection with an Enter [blank line]?

 

Move
g
NB1

 

-384'-3 63/64",261'-8"
-347'-6 3/8",261'-8"
delay 2000
rscript

 

But that would still take the group eventually out of the drawing area completely.  What would be the criteria for stopping, and maybe Moving it back to the starting location again?

Kent Cooper, AIA
0 Likes
Message 9 of 10

Anonymous
Not applicable
Shall we schedule a call to go over this? It's easier to show than type in here.
0 Likes
Message 10 of 10

pendean
Community Legend
Community Legend
No one is going to call you, We are all end users around here just like you: if you want to schedule a call you need to contact Autodesk Support from your Autodesk Account Page (look for the icon with a ? in it) https://manage.autodesk.com

0 Likes