Jump to content

Recommended Posts

Posted

Ok, Im not sure if this was a done using lisp or not. What I have seen is this , once a block is inserted it automatically aligns to the nearest line/polyline.

 

For example say you have a wall switch symbol and say you wanna place is on a wall which is at 45 degrees, the user would choose a symbol then click on a point on the wall and the symbol would automatically rotate/align to that wall.

 

How can this be implemented in CAD?

Posted

Prompt the user to select a block, then prompt the user for insertion point, extract the angle for the segment selected, insert the block specified at the desired scale and the calculated angle. Lemon squeezy.

 

This might be another good area for the acet-ss-drag-rotate function too.

 

HTH

Posted

Thanks Lee Mac, but the link appears broken.

Posted
Thanks Lee Mac, but the link appears broken.

 

Sorry, it seems the 'cadtutor' url is automatically prefixed to some hyperlinks - I've updated the above post.

Posted
Sorry, it seems the 'cadtutor' url is automatically prefixed to some hyperlinks - I've updated the above post.

 

I too had the same problem just the other day. :glare:

Posted

A non programming method would be make it into a dynamic block with "alignment property"

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