Jump to content

LISP to Count Block Between Blocks with Attributes


Recommended Posts

Posted

Hi,

 

I am looking for a LISP routine that tells me when a 'Reducer' block appears on a drawing and which nodes they appear between (each node is numbered by an attribute).

The attached drawing shows an example and reducers appear between nodes 2-3, 4-5 and 4-6 so I would ideally like a routine that exports the data to a CSV in 3 x columns (node, node, reducer). If a reducer is present then this could just be listed as "R" in the reducer column.

 

Any help would be greatly appreciated, thanks!

Reducer.dwg

Posted

I wrote somehow a similar program a few weeks ago so here is a .gif video describes the process and already added more reducers and nodes for wilder preview.

I can add the final part which will wrote the info to csv once you purchase you copy of the program if you are interested.

It seems .gif files are not allowed or facing an issue to upload them to website and that's why I upload it to external hosting website.

 

https://gifyu.com/image/Sz09l   

Posted
On 2/16/2022 at 7:07 PM, Tharwat said:

I wrote somehow a similar program a few weeks ago so here is a .gif video describes the process and already added more reducers and nodes for wilder preview.

I can add the final part which will wrote the info to csv once you purchase you copy of the program if you are interested.

It seems .gif files are not allowed or facing an issue to upload them to website and that's why I upload it to external hosting website.

 

https://gifyu.com/image/Sz09l   

 

Hi, thanks for the response. I think that looks a little too complex for what I require as I have now simplified my request. I really just need it to pick up the reducers and tell which node they are in between (no diameter is required).

Posted

Yes that's what the code does and the print on command line is just an example of the nodes' referenced numbers and reducer insertion point.

(<node_number> <reducer_insertion_coordinates> <node_number>)

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...