Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: entmake

  1. #1
    Member
    Join Date
    2010-08
    Posts
    6

    Default entmake

    Hi, I am trying to entmake a INSERT (block) from a different directory. only if I inserted first the block, then the entmake , the block will appear.
    How do I entmake blocks from different directories without inserting the blocks in the drawings first.

    Thanks in Advance

  2. #2
    Member
    Join Date
    2010-08
    Posts
    6

    Default Re: entmake

    Quote Originally Posted by gagage View Post
    Hi, I am trying to entmake a INSERT (block) from a different directory. only if I inserted first the block, then the entmake , the block will appear.
    How do I entmake blocks from different directories without inserting the blocks in the drawings first.

    Thanks in Advance
    The codes are as follow:-
    (entmake'((0 . "insert") (8 . "0") (70 . 2)(2 . "c:\\lib\\part_0023.dwg") (10 0.0 0.0 0.0)))

    it return nil

    until I insert the block into the drawing and delete it.

    Thanks Again

  3. #3
    I could stop if I wanted to Tharwat's Avatar
    Join Date
    2010-06
    Posts
    477

    Default Re: entmake

    Hello,

    I think entmake won't work that way, and to use the command would allow you to
    reinsert the same last Block name inserted into your drawing.

    Code:
    (while (setq pt (getpoint "\n Specify the Block Insertion point: "))
    (command "_.-insert" "" pt "" "" "" )
           )
    it is continuous inserting Blocks.

    Welcome to AUGI

    Tharwat

  4. #4
    Member
    Join Date
    2010-08
    Posts
    6

    Default Re: entmake

    Quote Originally Posted by tharwat313 View Post
    Hello,

    I think entmake won't work that way, and to use the command would allow you to
    reinsert the same last Block name inserted into your drawing.

    Code:
    (while (setq pt (getpoint "\n Specify the Block Insertion point: "))
    (command "_.-insert" "" pt "" "" "" )
           )
    it is continuous inserting Blocks.

    Welcome to AUGI

    Tharwat
    Thanks Tharwat,

    I am trying to use entmake so that I can insert many parts into the drawings quickly. I have tried using command insert , it seems that it is much slower.

    I am inserting a hundreds of block from a text file.

    Any other solution.

    Thanks

  5. #5
    Member
    Join Date
    2010-08
    Posts
    6

    Default Re: entmake

    Quote Originally Posted by gagage View Post
    Thanks Tharwat,

    I am trying to use entmake so that I can insert many parts into the drawings quickly. I have tried using command insert , it seems that it is much slower.

    I am inserting a hundreds of block from a text file.

    Any other solution.

    Thanks
    is there a code I can define the directory of the block I am inserting from?

  6. #6
    I could stop if I wanted to Tharwat's Avatar
    Join Date
    2010-06
    Posts
    477

    Default Re: entmake

    Here is the rule of the Block entmake, and I think the problem is with the Block Path itself, because I tried it with normal existed block in my drawing and it works normally.

    So don't worry somebody would help you with it very soon.

    Code:
    (entmakex (list (cons 0 "INSERT")
    		(cons 2 "BlockName")
    		(cons 10 '(0 0 0))
    		))
    Please correct your Codes accordingly.

    Regards,

    Tharwat

  7. #7
    Member
    Join Date
    2010-08
    Posts
    6

    Default Re: entmake

    Quote Originally Posted by tharwat313 View Post
    Here is the rule of the Block entmake, and I think the problem is with the Block Path itself, because I tried it with normal existed block in my drawing and it works normally.

    So don't worry somebody would help you with it very soon.

    Code:
    (entmakex (list (cons 0 "INSERT")
    		(cons 2 "BlockName")
    		(cons 10 '(0 0 0))
    		))
    Please correct your Codes accordingly.

    Regards,

    Tharwat
    Thanks Tharwat,
    It works only when there is a existing block in my drawing. is there a parameters i can set the path.I tried to insert the block and then cancel it. it still works.

    Thanks Again

  8. #8
    I could stop if I wanted to Tharwat's Avatar
    Join Date
    2010-06
    Posts
    477

    Default Re: entmake

    Quote Originally Posted by gagage View Post
    It works only when there is a existing block in my drawing
    This is what I indicated to it before.

    Quote Originally Posted by gagage View Post
    is there a parameters i can set the path.I tried to insert the block and then cancel it.
    it still works.
    Actually there must be, and I tried to insert an external block to current drawing but it's failed.

    You will get it work very soon.

    Regards.

  9. #9
    Member
    Join Date
    2010-08
    Posts
    6

    Default Re: entmake

    Quote Originally Posted by tharwat313 View Post
    This is what I indicated to it before.



    Actually there must be, and I tried to insert an external block to current drawing but it's failed.

    You will get it work very soon.

    Regards.
    Still searching for a solution to link the external block into the dwgs..

  10. #10
    Active Member
    Join Date
    2002-12
    Posts
    77

    Default Re: entmake

    I believe that the block definition must exist before you can make an insert from it.

    You have 2 choices
    Code:
    VLA-INSERTBLOCK
    
    or
    
    (entmake 
    		(list 
    			(cons 0 "BLOCK") 
    			(cons 2 BlockName)	
    			(cons 70 2) 
    			(cons 10 (list 0.0 0.0 0.0))
    			(cons 8 "0")
    		) 
    	)
    
    ***ADD YOU ENTMAKE OBJECTS HERE
    
    	;; Write block end sub-entity
    	(entmake 
    		(list
    			(cons 0 "ENDBLK")
    		)
    	)

Page 1 of 2 12 LastLast

Similar Threads

  1. Entmake UCS - error
    By krkeec763189 in forum AutoLISP
    Replies: 4
    Last Post: 2011-11-19, 08:09 AM
  2. Help with entmake syntax
    By fclao in forum AutoLISP
    Replies: 1
    Last Post: 2010-05-25, 09:12 AM
  3. Example of EntMake
    By ccowgill in forum AutoLISP
    Replies: 8
    Last Post: 2009-08-24, 08:37 PM
  4. Entmake UCS
    By Takuwind in forum AutoLISP
    Replies: 6
    Last Post: 2006-08-04, 08:01 PM
  5. UCS vs entmake
    By scwegner in forum AutoLISP
    Replies: 5
    Last Post: 2005-08-26, 04:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •