Jump to content

Using entmake as insert?


Potyatomic

Recommended Posts

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)

Link to comment
Share on other sites

  • Replies 39
  • Created
  • Last Reply

Top Posters In This Topic

  • alanjt

    14

  • BlackBox

    14

  • dbroada

    3

  • Potyatomic

    3

Top Posters In This Topic

SMACK :ouch:

 

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.

Link to comment
Share on other sites

1+ SMACK o:)

 

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! :beer:

Link to comment
Share on other sites

1+ SMACK o:)

 

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! :beer:

 

I have moved this to the AutoLISP, Visual LISP & DCL forum.

Link to comment
Share on other sites

^^

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

^^

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

facebook_like_button_big.jpg

Link to comment
Share on other sites

Give me a list of addresses and I'll deliver a smack, personally.

 

When you get these done, I have a few more:

  1. 1600 Pennsylvania Avenue NW Washington, DC 20500
  2. 1 Observratory Circle, Washington, D. C. 20007
  3. 1 1st Street, Washington D.C., DC 20543-0002
  4. Wash Ave D St SW, Washington D.C., DC 20515

:twisted:

Link to comment
Share on other sites

When you get these done, I have a few more:

 

  1. 1600 Pennsylvania Avenue NW Washington, DC 20500
  2. 1 Observratory Circle, Washington, D. C. 20007
  3. 1 1st Street, Washington D.C., DC 20543-0002
  4. Wash Ave D St SW, Washington D.C., DC 20515

:twisted:

Just as long as yours is at the top of the list. :wink:

Link to comment
Share on other sites

Pu$$y. :P

 

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

Link to comment
Share on other sites

Give me a list of addresses and I'll deliver a smack, personally.

 

 

 

 

When you get these done, I have a few more:
  1. 1600 Pennsylvania Avenue NW Washington, DC 20500
  2. 1 Observratory Circle, Washington, D. C. 20007
  3. 1 1st Street, Washington D.C., DC 20543-0002
  4. Wash Ave D St SW, Washington D.C., DC 20515

:twisted:

 

Just as long as yours is at the top of the list. :wink:

 

Pu$$y. :P

 

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 :P:

 

 

2310 Tamiami Trail, #7A, Bradenton, FL 34205-6406

Link to comment
Share on other sites

That's not what you originally asked for, but if you think you're man enough, bring it on... pu$$y :P:

 

 

2310 Tamiami Trail, #7A, Bradenton, FL 34205-6406

Someone is in an odd mood today. LoL

 

I know where both of you live. :ouch: :ouch:

Abuse of power!

Link to comment
Share on other sites

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. :D:P

 

I know where both of you live. :ouch: :ouch:

 

Abuse of power!

 

... besides I thought it was "Hulk Smash", not "Hulk Smack," what a sissy. :lol: LoL

(^^ poking the sleeping bear LoL ^^)

Link to comment
Share on other sites

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. :D:P)

Figured as much. I guess I just ran out of gas and smarmy remarks.....for now.

Link to comment
Share on other sites

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