Jump to content

Is bpoly/boundary creation without user interaction possible?


Recommended Posts

Posted
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)?

  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

  • Pottersfriend

    14

  • pBe

    11

  • BlackBox

    5

  • fixo

    3

Top Posters In This Topic

Posted Images

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

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

Posted
? 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

Posted
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 :lol: .The code is nowhere near perfect though. it works for certain conditions but hey, its a start :)

 

Cheers Blackfish

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

Posted
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 :beer:

Posted

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.

Posted
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.). :thumbsup:

Posted

RenderMan: Yes, the dwg's should represent a "real" production dwg situation as regards to entity types.

 

Thanks.

Posted
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" . :)

Posted

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

Posted (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 by BlackBox
iPhone autocorrect typo fixed
Posted
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.

  • 2 weeks later...
Posted

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.

  • 3 weeks later...
Posted

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.

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