Jump to content

Entmake Hatch


Lee Mac

Recommended Posts

  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

  • The Buzzard

    22

  • Lee Mac

    14

  • wizman

    3

Popular Days

Top Posters In This Topic

entmakex Function

 

Makes a new object or entity, gives it a handle and entity name (but does not assign an owner), and then returns the new entity name.

 

I never new this existed.

Link to comment
Share on other sites

Lee,

 

I went back to earlier posts and did not see the EN.lsp.

Thats real cool. I just tested it on a block and it broke down everything.

I will get alot of use out of that code for sure.

 

Thanks Again.

Link to comment
Share on other sites

No Probs, and thanks Wizman for that tip. I was aware of the entmakex function, but didn't know that you could just leave in the entity name and handle etc when providing it with arguments... good to know :thumbsup:

 

Lee

Link to comment
Share on other sites

Wiz,

 

Out of curiosity, What are the main benefits between the two?

Other than leaving in the entity name and handle.

Link to comment
Share on other sites

I can see that, But I would think there would be more to it to have two command function that basically do the same thing, But one does just a bit more. Does not seem to make that much sense to me. Why not just have one.

Link to comment
Share on other sites

Lee,

 

What is meant by the following:

 

Warning! Objects and entities without owners are not written out to DWG or DXF files. Be sure to set an owner at some point after using entmakex. For example, you can use dictadd to set a dictionary to own an object.

 

Found this at the bottom of the page for entmakex function.

Link to comment
Share on other sites

entmakex is fine with graphical entities and table entries and need to worry about the warning when dealing with dictionary. For example are groups and xrecords, you need entmakex to create the non graphical entities, but needs an extra append function in the dictionary or else it will be lost once the drawing has been closed.

Link to comment
Share on other sites

Some good posts, But still some questions partially unanswered.

The only way to know for sure is try it and see what happens.

I will setup some test blocks and find out.

Link to comment
Share on other sites

entmakex is fine with graphical entities and table entries and need to worry about the warning when dealing with dictionary. For example are groups and xrecords, you need entmakex to create the non graphical entities, but needs an extra append function in the dictionary or else it will be lost once the drawing has been closed.

 

For Eg:

 

http://www.cadtutor.net/forum/showpost.php?p=212432&postcount=2

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