madonthemike Posted January 26, 2012 Posted January 26, 2012 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? Quote
BlackBox Posted January 26, 2012 Posted January 26, 2012 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 Quote
Lee Mac Posted January 26, 2012 Posted January 26, 2012 (edited) Would this help at all? Edited January 26, 2012 by Lee Mac Fixed broken link Quote
madonthemike Posted January 26, 2012 Author Posted January 26, 2012 Thanks Lee Mac, but the link appears broken. Quote
Lee Mac Posted January 26, 2012 Posted January 26, 2012 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. Quote
BlackBox Posted January 26, 2012 Posted January 26, 2012 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. Quote
dragon2dmax Posted January 27, 2012 Posted January 27, 2012 A non programming method would be make it into a dynamic block with "alignment property" Quote
Recommended Posts
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.