How to create a lisp onto doing a purge regapp/audit and purgevehicletracking and batch process it ?

How to create a lisp onto doing a purge regapp/audit and purgevehicletracking and batch process it ?

cyberflow
Advisor Advisor
1,197 Views
8 Replies
Message 1 of 9

How to create a lisp onto doing a purge regapp/audit and purgevehicletracking and batch process it ?

cyberflow
Advisor
Advisor

Hi group,

I've been referenced by @Valentin_CAD to reach out to @Kent1Cooper on this forum about create a lisp tool that would help me batch process the cleaning of my files on a project.

I know how to do a simple lisp that calls out a command line command

The only thing that i see a challenge is to do the purgevehicletracking comand since it prompts the user.

I'd want to do an audit and a purge regapp too.

Anyone could guide me a bit on the tools available for batch process and the lisp part ?

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
1,198 Views
8 Replies
Replies (8)
Message 2 of 9

Sea-Haven
Mentor
Mentor

The purge is easy bit use -purge so you would write a script that could be used to clean up dwgs, often you need more than 1 go of purge, say 3.

 

Just write down all the steps making them 1 line.

eg 

-purge

A

*

N

AUDIT

Y

 

 

In CIV3D there is purgestyles also. So a correct sequence needs to be used, the vehicletracking purge you say comes up with a dialouge ? Can you do a mini movie I dont have vehicletracking loaded.

 

yes you can lisp it also (command "-purge" "a" "*" "n" )

0 Likes
Message 3 of 9

Kent1Cooper
Consultant
Consultant

I know nothing about batch application of AutoLisp, nor about Vehicle Tracking.  There's a >Forum for that<, where you might find assistance.

Kent Cooper, AIA
0 Likes
Message 4 of 9

cyberflow
Advisor
Advisor

Thx @Kent1Cooper; i've alread started a post on it : https://forums.autodesk.com/t5/vehicle-tracking-forum/batch-purgevehicletracking-possible/td-p/10614...

 

Do you know a way to ignore a popup when calling a command ?
The "purgevehicletracking" command prompts users usually

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 5 of 9

cyberflow
Advisor
Advisor

Hi @Sea-Haven 
Thank you for replying one of the commands (purgevehicletracking) prompts the users and i'm not sure how to bypass that option in a command line format

Thank you for your idea, i've already done that using the (command "") function an managed to make it work.

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 6 of 9

cyberflow
Advisor
Advisor

@Kent1Cooper  

@Sea-Haven 

 

Here you can see the command of purgevehicletracking in action : 

 



purgevehicletracking.gif

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 7 of 9

Kent1Cooper
Consultant
Consultant

@cyberflow wrote:

....

Do you know a way to ignore a popup when calling a command ?
The "purgevehicletracking" command prompts users usually


Since it's not a native AutoCAD command, I couldn't say.  For native AutoCAD commands that use dialog boxes, most can be used without them [at the command line only] by prefixing the command name with a hyphen [-LAYER, for example], but a few dialog-box commands don't have that command-line-only option.

Kent Cooper, AIA
0 Likes
Message 8 of 9

Sea-Haven
Mentor
Mentor

The Vehicle tracking is a Autodesk product, but as we know all the rules change, even in Autocad a command prompts and sequence were done by person A, the other command by person B different approach.

 

I could see you set filedia 0 did you try though as Kent suggested putting a "-" in front of the command, which I could not make out. 

 

0 Likes
Message 9 of 9

cyberflow
Advisor
Advisor

Hi all, 


Adding the hyphen "-" to the command stills brings up that popup again.
Unfortunatly !

 

I got a bit of deception that Autodesk didnt thought this one thru.

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes