Jump to content

Recommended Posts

Posted (edited)

Hey guys,

 

I've been trying to figure out the solution to my problem and so far I think using a LISP routine is the way to go. I'm new to LISP (just heard about it today actually) and I can't figure this out, nor could I find any existing code for my problem.

 

I have a drawing of a tree that has many leaves on it. The leaves are symmetrical if you flip it about the x-axis and Y-axis with two mounting holes on either end. They are wavy-shaped, kind of like toothpaste when you squeeze it out of a tube (at least when they do it on the commercials)

 

GnpJWwIotJfVENA6y3WYag

 

Problem is, I have to change the diameter of the holes (easy) but ALSO change the center to center spacing. The leaves are in all varying orientations and the leaf is not a block.

 

So basically I need to re-size holes and modify their location RELATIVE to the leaves which have all varying orientations. I think the best way to handle this would be with using a LISP routine. So far I found something Lee Mac wrote about selecting similar areas SSAREA SSAREA

to select the objects, but I don't really know what to do. I would do it manually but there are 1000+ leaves so that would take quite a while....

Edited by mrdeep2001
Posted

If a LISP routine is not the way to go, please let me know. been reading up on LISP routines over the weekend, but haven't gotten anywhere.

 

Thanks for your help guys!

Posted

Are you talking about the very old SHAPE entity ? -David

Posted

David,

 

I apologize for using incorrect terminology, my Autocad experience was limited to repetitive tasks. The leaf is a polyline converted to arcs.

 

Finished up the project over the weekend, but I'm still interested in finding out what would've been the most efficient way to handle it.

 

-Deep

Posted

I've attached the tree/leaf drawing. So basically I wanted to re-size the hole diameters and modify the center-to-center distance of the holes.

 

 

500 Resurrection Tree_Deep.dwg

Posted
...my Autocad experience was limited to repetitive tasks. The leaf is a polyline converted to arcs.

...I'm still interested in finding out what would've been the most efficient way to handle it.

 

I've attached the tree/leaf drawing. So basically I wanted to re-size the hole diameters and modify the center-to-center distance of the holes.

 

I think you meant your leaf outline is a polyline made up of arcs.

 

I did not see a Q at the beginning of the thread, but now that you’ve posted with a DWG, I suspect LISP would not likely have helped. Making (defining) a BLOCK would probably have been the best way to go. You should read up on that command and process, as blocks are extremely useful. In this case, the base point would likely have been best midway between the holes. Then you could change the hole sizes and their spacing relative to the base point for all the leaves at once. The easiest way to do that sort of thing is via the Block Editor (BEdit command).

 

Also note that Blocks are easier than learning LISP, and if the need arises, they are generally easier to manipulate with LISP than are many other objects. And note that these days you can do a lot with a large selection of blocks just changing Properties.

Posted

Hm, I don't know where that post when...

 

I came into this DWG after it was initially completed and then informed we needed to re-size and re-position the holes. I agree that having a block for the leaf from the get-go would have been fantastic. Initially, I was trying to figure out a way to modify the existing DWG (which did not have blocks), without having to go through and modify each leaf. There were only a few different angles to the leaves but it was just tedious.

Posted

Yep, I see what you mean by repetitive work, especially now that that important first post is showing. Lee Mac has a nice prog there. Perhaps there is a good way to adapt it and someone will chime in with the perfect solution. I'll have to give it some thought.

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