Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BPOLY Command fails

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
grahamcook
1676 Views, 2 Replies

BPOLY Command fails

Hi

We are developing an AutoCAD Plugin that Silhouette's the skyline from the face of any given window.  It's a complex, multi-stage process and one of the stages is to create a boundary from any given point, with the input being several thousand lines draw on one flat projection plane.  We are using the .NET method TraceBoundary for this that does the same thing as the BPOLY command hence my post to this forum.

It's working 80% of the time but sometimes fails to create the boundary and i don't know why.  I've created a very simple example file from one of the failures and stripped it down to just 5 lines.  As far as i can tell the lines are flat and on the same plane but the BPOLY command is not able to determine a boundary.  If anyone knows why or can suggest a command that will fix the issue (similar to FLATTEN)?

 

Thanks.

 

Regards

 

Graham Cook

2 REPLIES 2
Message 2 of 3

Hi,

 

my guess: it's the size of the objects, that is close to impossible working with that small objects.

Scale your objects before running _BPOLY and scale the result back to your needs (scaling by factor 1000 works for me).

 

20160530_1238.png

 

As you see the distance is really small and comparing start- and endpoint of the diagolnal line needs more decimal places than shown (by default).

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 3

Thank you Alfred! Yes, that's it.  The models are in meters and by the time we have projected a 150 degree view of the entire model onto a 1m wide view plane we are getting some very small geometry.  Scaling up 1000 sorts it.

 

Regards

 

Graham Cook

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report