The Buzzard Posted April 21, 2009 Posted April 21, 2009 Thanks WIZ, I was never aware of it. Good to know. I will check it out. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 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. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 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. Quote
Lee Mac Posted April 21, 2009 Author Posted April 21, 2009 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 Lee Quote
wizman Posted April 21, 2009 Posted April 21, 2009 you're welcome lee / buzzard, and i learned it also from elpanov of theswamp. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 Wiz, Out of curiosity, What are the main benefits between the two? Other than leaving in the entity name and handle. Quote
Lee Mac Posted April 21, 2009 Author Posted April 21, 2009 I suppose you can manipulate the return straight away, as you have the entity name output. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 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. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 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. Quote
Lee Mac Posted April 21, 2009 Author Posted April 21, 2009 Hmmm not sure - perhaps Wizman can shed some light Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 When I see a warning, It tells me its not to friendly to use. Quote
Lee Mac Posted April 21, 2009 Author Posted April 21, 2009 In getting a consensus: http://www.cadtutor.net/forum/showpost.php?p=223260&postcount=9 http://www.cadtutor.net/forum/showthread.php?t=30687&highlight=entmakex Quote
wizman Posted April 21, 2009 Posted April 21, 2009 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. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 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. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 I thought you could still use entmake for non-graphical entities as well. Quote
Lee Mac Posted April 21, 2009 Author Posted April 21, 2009 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 Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 Ok, got it. Then it should still function like entmake for all other graphical objects with no side affects. Quote
The Buzzard Posted April 21, 2009 Posted April 21, 2009 I will test out later anyway and see how it goes. If no ulcers, then I will consider using it on a regular basis. Quote
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.