Jump to content

Recommended Posts

Posted

Thanks WIZ,

 

I was never aware of it. Good to know. I will check it out.

  • 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

Posted

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.

Posted

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.

Posted

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

Posted

you're welcome lee / buzzard, and i learned it also from elpanov of theswamp.

Posted

Wiz,

 

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

Other than leaving in the entity name and handle.

Posted

I suppose you can manipulate the return straight away, as you have the entity name output. :)

Posted

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.

Posted

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.

Posted

When I see a warning, It tells me its not to friendly to use.

Posted

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.

Posted

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.

Posted

I thought you could still use entmake for non-graphical entities as well.

Posted
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

Posted

Ok, got it.

 

Then it should still function like entmake for all other graphical objects with no side affects.

Posted

I will test out later anyway and see how it goes. If no ulcers, then I will consider using it on a regular basis.

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