Jump to content

Block Count Routine


andy_06

Recommended Posts

Hi all,

 

I have had some help on here previous which has been great.

 

I am looking for a lisp routine that exports the Nodes (GN), diameter (label) and then states if an End Cap and Reducer is present and then exports to a CSV similar to the attached.

 

I have attached an example CAD drawing and CSV, is this possible?

 

Many thanks

TEST - End Cap Reducer.dwg Test.csv

Link to comment
Share on other sites

13 minutes ago, andy_06 said:

Hi all,

 

I have had some help on here previous which has been great.

 

I am looking for a lisp routine that exports the Nodes (GN), diameter (label) and then states if an End Cap and Reducer is present and then exports to a CSV similar to the attached.

 

I have attached an example CAD drawing and CSV, is this possible?

 

Many thanks

TEST - End Cap Reducer.dwg 163.38 kB · 1 download Test.csv 110 B · 0 downloads

Apologies, I should have mentioned that the diameters can be any number of sizes so would need to cope with various sizes (i.e. 63mm, 90mm, 125mm, 180mm etc).

Link to comment
Share on other sites

This require say 5 steps to get the answer, for me I would go back steps making life easier, and have layers 63PE, 90PE, and so on removes 1 step of finding a label.

 

If you had a simple lisp draw pline on correct layer and label at same time would make sense. I have something similar to do with pipes and it just means type 90PE at command line. Taking it the next step would be add reducer or end cap, as you draw it, would make a table or csv at the same time want length also ? Ps have table to excel.

 

Now getting into donation could write direct to excel as you draw. 

 

So have  a think about an overall improvement rather than after the event. This image is from a free library dcl toggle choice. Took like 1 minute to make the calling code.

 

image.png.787ef604d03308eb6ab792488ac0e4ad.png

Edited by BIGAL
  • Like 1
Link to comment
Share on other sites

7 hours ago, BIGAL said:

This require say 5 steps to get the answer, for me I would go back steps making life easier, and have layers 63PE, 90PE, and so on removes 1 step of finding a label.

 

If you had a simple lisp draw pline on correct layer and label at same time would make sense. I have something similar to do with pipes and it just means type 90PE at command line. Taking it the next step would be add reducer or end cap, as you draw it, would make a table or csv at the same time want length also ? Ps have table to excel.

 

Now getting into donation could write direct to excel as you draw. 

 

So have  a think about an overall improvement rather than after the event. This image is from a free library dcl toggle choice. Took like 1 minute to make the calling code.

 

image.png.787ef604d03308eb6ab792488ac0e4ad.png

Hi, thanks for your input. To simplify things would it be possible to list and count certain blocks within the drawing? I could change the name or visibility of the end caps and reducers so that their name includes the diameter.

Link to comment
Share on other sites

That would remove a number of steps, counting blocks is easy, still think about the overall approach, choose number, draw pline to next number, on correct layer, add ends if required, make table at same time.

 

A rethink and a bit of automation saves hours.

Edited by BIGAL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...