Potyatomic Posted June 21, 2011 Share Posted June 21, 2011 Hey I'm a completely nub AutoCAD/Lisp user.. So I'm trying to make a menu that will load premade .dwg files with simple user specifications like scale and rotation. I know that _insert will do the trick but I'm trying to simplify the dimension specifications into one unit unstead of two. Is there any way to do this or do I need to make a .lsp file (if so how do you load a .dwg with a .lsp file? Supposedly entmake will do it but I can't figure that out) Please leave any suggestions Your feedback is much appreciated~ (please also smack me if I make no sense) Quote Link to comment Share on other sites More sharing options...
dbroada Posted June 21, 2011 Share Posted June 21, 2011 SMACK so you want to insert certain drawings at a set scale and rotation? Have you looked at using a palette yet? Create a drawing containing your other drawings as blocks and then drag your block from that drawing on to a new palette. (You can apparently use Design Center for this step.) Then right click the palette icon of each item and check the properties. You can set many things here such as scale and rotation. At least that is how it works with 2008. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 21, 2011 Share Posted June 21, 2011 1+ SMACK If you are choosing to not use the insert command, and you choose not to use a Tool Palette, then you might look into Visual LISP's InsertBlock Method. Just head over to the correct forum for AutoLISP, Visual LISP & DCL questions, and myself or someone else will be along to assist you. Cheers! Quote Link to comment Share on other sites More sharing options...
SLW210 Posted June 21, 2011 Share Posted June 21, 2011 1+ SMACK If you are choosing to not use the insert command, and you choose not to use a Tool Palette, then you might look into Visual LISP's InsertBlock Method. Just head over to the correct forum for AutoLISP, Visual LISP & DCL questions, and myself or someone else will be along to assist you. Cheers! I have moved this to the AutoLISP, Visual LISP & DCL forum. Quote Link to comment Share on other sites More sharing options...
Potyatomic Posted June 27, 2011 Author Share Posted June 27, 2011 ^^ Seeing as we're in the right thread now I've done a little snooping around and looked up the general basics of Visual Lisp.. but I can't seem to find anything that tells me what InsertBlock does. (I can sorta guess 0__0 but more importantly format/syntax/the input thingy) And please no more smacking >__ Quote Link to comment Share on other sites More sharing options...
Tharwat Posted June 27, 2011 Share Posted June 27, 2011 I don know if I got you well , anyway check this out buddy . (setq mod (vla-get-ModelSpace (vla-get-activedocument (vlax-get-acad-object)) ) ) (setq p (getpoint "\n Specify the insertion point :")) (vla-insertblock mod (vlax-3d-point p) "C:\\Users\\TOUCHMATE\\Documents\\Execution.dwg" 1. 1. 1. 0.0 ) Tharwat Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 27, 2011 Share Posted June 27, 2011 ^^Seeing as we're in the right thread now I've done a little snooping around and looked up the general basics of Visual Lisp.. but I can't seem to find anything that tells me what InsertBlock does. (I can sorta guess 0__0 but more importantly format/syntax/the input thingy) And please no more smacking >__ Potyatomic - The Visual LISP developer documentation is where you want to look. If this is not already where you're developing your code, simply open the Visual LISP Integrated Development Environment (VLIDE command), and hit F1. You can use the apropos, and help menu buttons to help narrow in on something specific such as "InsertBlock" in this case, until you get the hang of going through the developer documentation on your own. A few of the best tutorials I've found on this subject can be found here. Good luck, and welcome to the world of Visual LISP. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 27, 2011 Share Posted June 27, 2011 Give me a list of addresses and I'll deliver a smack, personally. Seriously, forget inserting with code. USE TOOLPALETTES!!! You can specify the scale and you can specify rotation or give option to set it, plus a plethora of other options you can hard code for each block. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 27, 2011 Share Posted June 27, 2011 Give me a list of addresses and I'll deliver a smack, personally. Seriously, forget inserting with code. USE TOOLPALETTES!!! You can specify the scale and you can specify rotation or give option to set it, plus a plethora of other options you can hard code for each block. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 27, 2011 Share Posted June 27, 2011 Give me a list of addresses and I'll deliver a smack, personally. When you get these done, I have a few more: 1600 Pennsylvania Avenue NW Washington, DC 20500 1 Observratory Circle, Washington, D. C. 20007 1 1st Street, Washington D.C., DC 20543-0002 Wash Ave D St SW, Washington D.C., DC 20515 Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 27, 2011 Share Posted June 27, 2011 When you get these done, I have a few more: 1600 Pennsylvania Avenue NW Washington, DC 20500 1 Observratory Circle, Washington, D. C. 20007 1 1st Street, Washington D.C., DC 20543-0002 Wash Ave D St SW, Washington D.C., DC 20515 Just as long as yours is at the top of the list. :wink: Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 27, 2011 Share Posted June 27, 2011 Just as long as yours is at the top of the list. :wink: Pu$$y. meaningless text so I can make this post. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 27, 2011 Share Posted June 27, 2011 Pu$$y. meaningless text so I can make this post. As typed by the man that won't include his own address for the receiving of said smackery. LoL Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 27, 2011 Share Posted June 27, 2011 Give me a list of addresses and I'll deliver a smack, personally. When you get these done, I have a few more: 1600 Pennsylvania Avenue NW Washington, DC 20500 1 Observratory Circle, Washington, D. C. 20007 1 1st Street, Washington D.C., DC 20543-0002 Wash Ave D St SW, Washington D.C., DC 20515 Just as long as yours is at the top of the list. :wink: Pu$$y. meaningless text so I can make this post. As typed by the man that won't include his own address for the receiving of said smackery. LoL That's not what you originally asked for, but if you think you're man enough, bring it on... pu$$y : 2310 Tamiami Trail, #7A, Bradenton, FL 34205-6406 Quote Link to comment Share on other sites More sharing options...
SLW210 Posted June 27, 2011 Share Posted June 27, 2011 I know where both of you live. :ouch: Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 27, 2011 Share Posted June 27, 2011 That's not what you originally asked for, but if you think you're man enough, bring it on... pu$$y : 2310 Tamiami Trail, #7A, Bradenton, FL 34205-6406 Someone is in an odd mood today. LoL I know where both of you live. :ouch: Abuse of power! Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 27, 2011 Share Posted June 27, 2011 Someone is in an odd mood today. LoL Nawww... I'm just messing with you man. I wanted to see how far you'd take it since you were kind enough to call me out. All in good fun. :P I know where both of you live. :ouch: Abuse of power! ... besides I thought it was "Hulk Smash", not "Hulk Smack," what a sissy. LoL (^^ poking the sleeping bear LoL ^^) Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 27, 2011 Share Posted June 27, 2011 Nawww... I'm just messing with you man. I wanted to see how far you'd take it since you were kind enough to call me out. All in good fun. :P) Figured as much. I guess I just ran out of gas and smarmy remarks.....for now. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted June 27, 2011 Share Posted June 27, 2011 Figured as much. I guess I just ran out of gas and smarmy remarks.....for now. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 27, 2011 Share Posted June 27, 2011 giggle ................. Quote Link to comment Share on other sites More sharing options...
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.