Script files

Script files

piyush.parihar24
Advocate Advocate
949 Views
10 Replies
Message 1 of 11

Script files

piyush.parihar24
Advocate
Advocate

Hi,

 

I want to right a script to separarte out no. of drawings from a single drawing.

 

I have 20 template in single drawing and i want to separate out 20 drawings separately, with all layers. What script should i write to perform action.

 

Please help me out.

 

Regards,

 

Piyush Parihar

0 Likes
Accepted solutions (1)
950 Views
10 Replies
Replies (10)
Message 2 of 11

pendean
Community Legend
Community Legend
Not enough information... explain how the 20 templates are found in the file (modelspace or paperspace) and what each of the coordinates are, sizes in x,y,z each and more.

Or take about 20-minutes, start WBLOCK command, and be done with it.
Message 3 of 11

piyush.parihar24
Advocate
Advocate

Hi,

I think this may help you out to solve my problem.


 

dwg.png

This is how a drawing contain 20 sheets. Now i want to make each sheet different with different numbering for e.g.,

 

dwg2.png

This will be now sheet 1, sheet 2, sheet 3 and so on till sheet 20.

 

Hoe this diagram helps you out to sort my problem.

 

I want script/lisp programm for above query.

 

 

Reagards,

 

 

Piyush Parihar

0 Likes
Message 4 of 11

piyush.parihar24
Advocate
Advocate
I am still waiting for the response Sir. I need it urgently.
0 Likes
Message 5 of 11

pendean
Community Legend
Community Legend
No one can help you write a script file with the information you've provided: besides, you could have finished manually plotting in the time it's taken you to post and wait for an answer.

Use paperspace: one layout for each of your areas to plot, then PUBLISH command can help.
Message 6 of 11

M_Hensley
Advisor
Advisor

You need a way to tell each drawing apart from the rest. I do some processing of multiple drawings in model space and each one has a rectangle around it on a specific layer that no other objects are on. I select all the rectangles then get the coordinates for each corner and perform the actions required for each rectangle. Do you have a way to tell each drawing apart?

Message 7 of 11

jackshield
Collaborator
Collaborator

I agree with dean, in the past two days, this could have been easily done manually.

 

if it is a one shot deal, just do it.

 

if it will be a regular practice, then by all means, develop a good working tool.

 

if you're in a hurry, just do the work.  not everything in autocad is automated, sometimes there are repetitive task a drafter must perform, comes with the title, glory and big bucks.

 

Message 8 of 11

piyush.parihar24
Advocate
Advocate
Accepted solution

While reading all of your replies i was able to make it out something healthy.

I was trying the other way out. And I found One way which can be more useful and less time consuming. Make a script for New file open, zoom extend, purge, paste at 0,0,0 coordinate. Go back to Drawing where 20 drawings are there on model space apply the command cutclip and insert the script which I mentioned above. It will definitely less down your time. Try it..

 

 

Regards,

 

Piyush Parihar

0 Likes
Message 9 of 11

piyush.parihar24
Advocate
Advocate
I Agree with you sir that AutoCAD is not Automated, I am just trying to do so ...
0 Likes
Message 10 of 11

piyush.parihar24
Advocate
Advocate
Sometimes when client send us Drawings the coordinates are not fixed They place it randomly. So Coordinates are not helping me out. Other you wrote is exactly what I want...
0 Likes
Message 11 of 11

piyush.parihar24
Advocate
Advocate
Sir,
I am not asking you for ready-mate script I am just asking for a help that how can I separate out the no of drawings from single drawing. Now after reading out your replies I am clear that you are not getting exactly want I want from your side.

I will explain you in detail:

1. There is a sheet of drawing which contain 20 different drawings with template. They are placed randomly.

2. Now I want to separate out those 20 sheets(drawings) one by one with their respective template and make out individual drawing. With different drawing numbers.

3. This process has to be done automatically, via script/lisp.
0 Likes