fixo Posted May 31, 2012 Posted May 31, 2012 Cant test your drawing, stick stuck in 2009. besides TrueView cant covnert it either. try saveas 2007 Maybe you need to add (vl-load-com)? Quote
pBe Posted May 31, 2012 Posted May 31, 2012 Maybe you need to add (vl-load-com)? ? was that intended for me Oleg? Anyhoo. can you try the codes (mine and yours) at your end with the OPs attached drawing. cant seen to convert the file on my end. Quote
Blackfish Posted May 31, 2012 Posted May 31, 2012 Attached is a very simple drawing to see if that helps. I used construction lines but they could be any type of line and trimmed if needed. That's not what pBe (and others) has asked you. Can you post a part of your real drawing? It does matter if the lines are xlines or polylines etc. They have already tried a simple rectangle with xlines and you said it doesn't work in your drawing Cant test your drawing, stick stuck in 2009. besides TrueView cant covnert it either. try saveas 2007 The drawing is exactly the same as he showed in his first post: just a rectangle and 3 no. of xlines, so it's really what you want. It's even not as complex as your sample in #14. Quote
fixo Posted May 31, 2012 Posted May 31, 2012 ? was that intended for me Oleg? Anyhoo. can you try the codes (mine and yours) at your end with the OPs attached drawing. cant seen to convert the file on my end. Your routine is working like a charm for me, Regards, Oleg Quote
pBe Posted May 31, 2012 Posted May 31, 2012 Your routine is working like a charm for me,Regards, Oleg I see, thank you for testing the code. . Tried yours here, works well with Xlines. The drawing is exactly the same as he showed in his first post: just a rectangle and 3 no. of xlines, so it's really what you want. It's even not as complex as your sample in #14. Figured as much. Now i'm running out of answers .The code is nowhere near perfect though. it works for certain conditions but hey, its a start Cheers Blackfish Quote
Pottersfriend Posted June 2, 2012 Author Posted June 2, 2012 @pBe: Here is a 2007 version file. Example 2007.dwg Quote
Pottersfriend Posted June 2, 2012 Author Posted June 2, 2012 That's not what pBe (and others) has asked you. Can you post a part of your real drawing? It does matter if the lines are xlines or polylines etc. They have already tried a simple rectangle with xlines and you said it doesn't work in your drawing Unfortunately, I can't share an actual work drawing so I can only submit something approximate. I don't know if it helps, but to me it really doesn't matter what the object types are as long as the code does the job (not sure if I'm communicating it correctly). Quote
BlackBox Posted June 2, 2012 Posted June 2, 2012 Unfortunately, I can't share an actual work drawing so I can only submit something approximate. I don't know if it helps, but to me it really doesn't matter what the object types are as long as the code does the job (not sure if I'm communicating it correctly). Not everyone can share work drawings per-se. The point that others have appropriately attempted to make clear to you is that the entity types (line, polyline 2d, polyline 3d, xline, etc) matter for how to properly code the routine in order to achieve the desired outcome. While I get what you mean, the reality is that you, personally, not caring about the entity types is not relevant to the task. Hope this makes (more?) sense to you. Cheers Quote
Pottersfriend Posted June 2, 2012 Author Posted June 2, 2012 For simplicity sake, would it be easier for everyone to just use the last two example dwg's? At least that way we will know we're all using the same file for testing. Quote
BlackBox Posted June 2, 2012 Posted June 2, 2012 For simplicity sake, would it be easier for everyone to just use the last two example dwg's? At least that way we will know we're all using the same file for testing. Yes, that will work... So long as the drawing(s) is/are representative of the production drawing(s) (i.e., same entity types, etc.). Quote
Pottersfriend Posted June 2, 2012 Author Posted June 2, 2012 RenderMan: Yes, the dwg's should represent a "real" production dwg situation as regards to entity types. Thanks. Quote
pBe Posted June 2, 2012 Posted June 2, 2012 For simplicity sake, would it be easier for everyone to just use the last two example dwg's? At least that way we will know we're all using the same file for testing. Pottersfriend, I ran the code on your drawing.. and guess what? it works fine. I am at lost as to why it doesnt generate the boundaries at your end. Thats the reason i asked for a drawing sample from you to test the code with the same settings as you are using. (BTW: the sample you posted is acceptable ) but it also confirms that the code does work. Did you try to add (vl-load-com) like fixo suggested? Any error mesage at least? Like i said, "i'm running out of answers" . Quote
Pottersfriend Posted June 2, 2012 Author Posted June 2, 2012 pBE: When I run it it, I pick the rectangle, it creates the diagonal line from corner to corner, then gives the following error: ; error: Element not found Also, this is without adding (vl-load-com). Thanks Quote
BlackBox Posted June 3, 2012 Posted June 3, 2012 (edited) Open the code in VLIDE, set a breakpoint below the defun, and step thought the code. This will yield the line of code causing the error, and better help us to diagnose the issue. You may need to add some symbols to the watch. HTH Edited June 3, 2012 by BlackBox iPhone autocorrect typo fixed Quote
pBe Posted June 3, 2012 Posted June 3, 2012 pBE: When I run it it, I pick the rectangle, it creates the diagonal line from corner to corner, then gives the following error:; error: Element not found Can't seem to duplicate that error on my end , follow RenderMans' suggestion and post here what you see. Quote
Pottersfriend Posted June 12, 2012 Author Posted June 12, 2012 I have to apologize for not responding. Work has been very busy with too much overtime. Haven't turned on my home computer in 3 days. Anyway, I still haven't had the time or energy to test it with some break points, which I'm sure I'll need someone's help with. That is if anyone is still interested in this thread. Anyway, hope to have some time this week to try a few thing. I did manage to try the code on my 2004 machine at work and it didn't work there either. Gave some other error message I have since forgotten. Thanks for your patience. Quote
pBe Posted June 12, 2012 Posted June 12, 2012 Too bad.. What is the error message generated on 2004? What you can do is read-up on debugging a code -- > Debugging Code with the Visual LISP IDE by Lee Mac HTH Quote
Pottersfriend Posted July 4, 2012 Author Posted July 4, 2012 Sorry again for taking so long to reply but I've been working 50-60 hr weeks and the idea of sitting in front of the PC has lost its appeal. I did find some time last night to do some research on my error messages and the results led me to do a re-install of AutoCAD. Long story short, that seems to have taken care of the problems. Now maybe I'll be able to get back into this again. Hopefully I'll still have some willing participants. Thanks again for the patience. Quote
MrCAD Posted July 4, 2012 Posted July 4, 2012 well I was just wondering whether is it possible to make a similar lisp which can do this sketchup script does ? http://www.smustard.com/script/MakeFaces I've been looking for similar solution in autocad 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.